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 QWidget;
namespace BlackMisc { namespace Aviation { class CComSystem; } }
namespace Ui { class CCockpitComComponent; }
namespace BlackMisc { namespace Aviation { class CComSystem; } }
namespace BlackGui
{
namespace Components

View File

@@ -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);

View File

@@ -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();