mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Minor cockpit COM UI adjustments
This commit is contained in:
committed by
Mat Sutcliffe
parent
821e0b10b6
commit
16061f61e8
@@ -28,8 +28,8 @@
|
||||
class QPaintEvent;
|
||||
class QWidget;
|
||||
|
||||
namespace BlackMisc { namespace Aviation { class CComSystem; } }
|
||||
namespace Ui { class CCockpitComComponent; }
|
||||
namespace BlackMisc { namespace Aviation { class CComSystem; } }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
|
||||
@@ -105,6 +105,12 @@ namespace BlackGui
|
||||
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)
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
|
||||
@@ -62,6 +62,9 @@ namespace BlackGui
|
||||
//! The height of the combobox
|
||||
int getComboBoxHeight() const;
|
||||
|
||||
//! Set the combobox height
|
||||
void setComboBoxMinimumHeight(int h);
|
||||
|
||||
signals:
|
||||
//! Value has been changed
|
||||
void valueChanged();
|
||||
|
||||
@@ -134,6 +134,7 @@ namespace BlackGui
|
||||
this->setFrequencies(aircraft.getCom1System(), aircraft.getCom2System());
|
||||
this->setSelcal(aircraft.getSelcal());
|
||||
this->setTransponder(aircraft.getTransponder());
|
||||
this->alignUiElementsHeight();
|
||||
}
|
||||
|
||||
CSelcal CCockpitComForm::getSelcal() const
|
||||
|
||||
@@ -200,6 +200,10 @@ BlackGui--Components--CStringListDialog
|
||||
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
||||
}
|
||||
|
||||
BlackGui--Components--CCockpitComComponent {
|
||||
min-height: 7em;
|
||||
}
|
||||
|
||||
/* default for buttons */
|
||||
QToolButton {
|
||||
background-color: rgba(0, 0, 255, 128);
|
||||
|
||||
Reference in New Issue
Block a user