Some UI formatting / padding

This commit is contained in:
Klaus Basan
2017-06-18 16:20:47 +02:00
parent 2746b0a5f9
commit a8eae0ea55
3 changed files with 7 additions and 1 deletions

View File

@@ -69,6 +69,9 @@ namespace BlackGui
ui->tvp_OwnModelSet->setSimulatorForLoading(ui->comp_SimulatorSelector->getValue());
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_LoadExistingSet, &QPushButton::clicked, this, &CDbOwnModelSetComponent::ps_buttonClicked);
connect(ui->pb_SaveAsSetForSimulator, &QPushButton::clicked, this, &CDbOwnModelSetComponent::ps_buttonClicked);

View File

@@ -104,6 +104,9 @@ namespace BlackGui
ui->lblp_VatsimPassword->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
this->loadRememberedVatsimData();

View File

@@ -150,7 +150,7 @@ namespace BlackGui
// Connected button
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");
}
else