Ref T118, color search follow up formatting

This commit is contained in:
Klaus Basan
2017-10-25 19:46:56 +02:00
parent 297426ae8e
commit b74623599e
4 changed files with 16 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ namespace BlackGui
ui(new Ui::CDbLiveryColorSearchDialog)
{
ui->setupUi(this);
connect(this, &CDbLiveryColorSearchDialog::accepted, this, &CDbLiveryColorSearchDialog::ps_onAccepted);
connect(this, &CDbLiveryColorSearchDialog::accepted, this, &CDbLiveryColorSearchDialog::onAccepted);
}
CDbLiveryColorSearchDialog::~CDbLiveryColorSearchDialog()
@@ -33,12 +33,12 @@ namespace BlackGui
const CLivery &CDbLiveryColorSearchDialog::getLivery() const
{
return this->m_foundLivery;
return m_foundLivery;
}
void CDbLiveryColorSearchDialog::ps_onAccepted()
void CDbLiveryColorSearchDialog::onAccepted()
{
this->m_foundLivery = ui->comp_LiverySearch->getLivery();
m_foundLivery = ui->comp_LiverySearch->getLivery();
}
} // ns
} // ns

View File

@@ -33,14 +33,14 @@ namespace BlackGui
explicit CDbLiveryColorSearchDialog(QWidget *parent = nullptr);
//! Destructor
~CDbLiveryColorSearchDialog();
virtual ~CDbLiveryColorSearchDialog();
//! Found livery if any, otherwise default
const BlackMisc::Aviation::CLivery &getLivery() const;
private:
//! Dialog has been accepted
void ps_onAccepted();
void onAccepted();
BlackMisc::Aviation::CLivery m_foundLivery; //!< last livery found