refs #911, livery form fixed

* search buttons in select mode
* id can be entered
This commit is contained in:
Klaus Basan
2017-03-22 04:03:09 +01:00
committed by Mathew Sutcliffe
parent 6d97f477c9
commit 317b52a00b
3 changed files with 47 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ namespace BlackGui
explicit CLiveryForm(QWidget *parent = nullptr);
//! Destructor
~CLiveryForm();
virtual ~CLiveryForm();
//! Value
BlackMisc::Aviation::CLivery getValue() const;
@@ -69,6 +69,9 @@ namespace BlackGui
//! Clear data
void clear();
//! Reset value to current value
void resetValue();
public slots:
//! Value
bool setValue(const BlackMisc::Aviation::CLivery &livery);
@@ -86,6 +89,9 @@ namespace BlackGui
//! Search for color
void ps_searchForColor();
//! Id entered
void ps_idEntered();
private:
QScopedPointer<Ui::CLiveryForm> ui;
BlackMisc::Aviation::CLivery m_originalLivery; //!< object allowing to override values