Cockpit COM component align widget heights

This commit is contained in:
Klaus Basan
2019-03-31 00:22:48 +01:00
committed by Mat Sutcliffe
parent 8c5ee52128
commit 9f1090d430
5 changed files with 39 additions and 0 deletions

View File

@@ -100,6 +100,11 @@ namespace BlackGui
ui->cb_SelcalPairs2->setCurrentIndex(0);
}
int CSelcalCodeSelector::getComboBoxHeight() const
{
return ui->cb_SelcalPairs1->height();
}
void CSelcalCodeSelector::selcalIndexChanged(int index)
{
Q_UNUSED(index);

View File

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

View File

@@ -2,6 +2,14 @@
<ui version="4.0">
<class>CSelcalCodeSelector</class>
<widget class="QFrame" name="CSelcalCodeSelector">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>132</width>
<height>22</height>
</rect>
</property>
<property name="windowTitle">
<string>SELCAL selector</string>
</property>