mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 14: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 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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user