mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Some UI formatting / padding
This commit is contained in:
@@ -69,6 +69,9 @@ namespace BlackGui
|
|||||||
ui->tvp_OwnModelSet->setSimulatorForLoading(ui->comp_SimulatorSelector->getValue());
|
ui->tvp_OwnModelSet->setSimulatorForLoading(ui->comp_SimulatorSelector->getValue());
|
||||||
ui->comp_SimulatorSelector->setMode(CSimulatorSelector::RadioButtons);
|
ui->comp_SimulatorSelector->setMode(CSimulatorSelector::RadioButtons);
|
||||||
|
|
||||||
|
//! \fixme maybe it would be better to set those in stylesheet file
|
||||||
|
ui->pb_SaveAsSetForSimulator->setStyleSheet("padding-left: 3px; padding-right: 3px;");
|
||||||
|
|
||||||
connect(ui->pb_CreateNewSet, &QPushButton::clicked, this, &CDbOwnModelSetComponent::ps_buttonClicked);
|
connect(ui->pb_CreateNewSet, &QPushButton::clicked, this, &CDbOwnModelSetComponent::ps_buttonClicked);
|
||||||
connect(ui->pb_LoadExistingSet, &QPushButton::clicked, this, &CDbOwnModelSetComponent::ps_buttonClicked);
|
connect(ui->pb_LoadExistingSet, &QPushButton::clicked, this, &CDbOwnModelSetComponent::ps_buttonClicked);
|
||||||
connect(ui->pb_SaveAsSetForSimulator, &QPushButton::clicked, this, &CDbOwnModelSetComponent::ps_buttonClicked);
|
connect(ui->pb_SaveAsSetForSimulator, &QPushButton::clicked, this, &CDbOwnModelSetComponent::ps_buttonClicked);
|
||||||
|
|||||||
@@ -104,6 +104,9 @@ namespace BlackGui
|
|||||||
ui->lblp_VatsimPassword->setToolTips("ok", "wrong");
|
ui->lblp_VatsimPassword->setToolTips("ok", "wrong");
|
||||||
ui->lblp_VatsimRealName->setToolTips("ok", "wrong");
|
ui->lblp_VatsimRealName->setToolTips("ok", "wrong");
|
||||||
|
|
||||||
|
//! \fixme hardcoded padding, could maybe goto to stylesheet file
|
||||||
|
ui->bb_OkCancel->button(QDialogButtonBox::Ok)->setStyleSheet("padding-left: 3px; padding-right: 3px;");
|
||||||
|
|
||||||
// Stored data
|
// Stored data
|
||||||
this->loadRememberedVatsimData();
|
this->loadRememberedVatsimData();
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ namespace BlackGui
|
|||||||
// Connected button
|
// Connected button
|
||||||
if (to == INetwork::Connected)
|
if (to == INetwork::Connected)
|
||||||
{
|
{
|
||||||
ui->pb_Connect->setText("Disconnect");
|
ui->pb_Connect->setText("Discon."); // full terms some too wide
|
||||||
ui->pb_Connect->setStyleSheet("background-color: green");
|
ui->pb_Connect->setStyleSheet("background-color: green");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user