Minor cockpit COM UI adjustments

This commit is contained in:
Klaus Basan
2019-04-06 01:12:46 +02:00
committed by Mat Sutcliffe
parent 821e0b10b6
commit 16061f61e8
5 changed files with 15 additions and 1 deletions

View File

@@ -28,8 +28,8 @@
class QPaintEvent; class QPaintEvent;
class QWidget; class QWidget;
namespace BlackMisc { namespace Aviation { class CComSystem; } }
namespace Ui { class CCockpitComComponent; } namespace Ui { class CCockpitComComponent; }
namespace BlackMisc { namespace Aviation { class CComSystem; } }
namespace BlackGui namespace BlackGui
{ {
namespace Components namespace Components

View File

@@ -105,6 +105,12 @@ namespace BlackGui
return ui->cb_SelcalPairs1->height(); return ui->cb_SelcalPairs1->height();
} }
void CSelcalCodeSelector::setComboBoxMinimumHeight(int h)
{
ui->cb_SelcalPairs1->setMinimumHeight(h);
ui->cb_SelcalPairs2->setMinimumHeight(h);
}
void CSelcalCodeSelector::selcalIndexChanged(int index) void CSelcalCodeSelector::selcalIndexChanged(int index)
{ {
Q_UNUSED(index); Q_UNUSED(index);

View File

@@ -62,6 +62,9 @@ namespace BlackGui
//! The height of the combobox //! The height of the combobox
int getComboBoxHeight() const; int getComboBoxHeight() const;
//! Set the combobox height
void setComboBoxMinimumHeight(int h);
signals: signals:
//! Value has been changed //! Value has been changed
void valueChanged(); void valueChanged();

View File

@@ -134,6 +134,7 @@ namespace BlackGui
this->setFrequencies(aircraft.getCom1System(), aircraft.getCom2System()); this->setFrequencies(aircraft.getCom1System(), aircraft.getCom2System());
this->setSelcal(aircraft.getSelcal()); this->setSelcal(aircraft.getSelcal());
this->setTransponder(aircraft.getTransponder()); this->setTransponder(aircraft.getTransponder());
this->alignUiElementsHeight();
} }
CSelcal CCockpitComForm::getSelcal() const CSelcal CCockpitComForm::getSelcal() const

View File

@@ -200,6 +200,10 @@ BlackGui--Components--CStringListDialog
background-image: url(:/textures/icons/textures/texture-inner.jpg); background-image: url(:/textures/icons/textures/texture-inner.jpg);
} }
BlackGui--Components--CCockpitComComponent {
min-height: 7em;
}
/* default for buttons */ /* default for buttons */
QToolButton { QToolButton {
background-color: rgba(0, 0, 255, 128); background-color: rgba(0, 0, 255, 128);