Login UI/lookup improvements

* made tool -> push buttons as easier to spot
* reverse lookup of model before login -> always latest DB data
* use "text only" ICAO code if loading from DB yields no result
This commit is contained in:
Klaus Basan
2019-01-16 18:56:05 +01:00
committed by Mat Sutcliffe
parent 985674f1cf
commit 13c67e4838
12 changed files with 96 additions and 51 deletions

View File

@@ -34,7 +34,7 @@ namespace BlackGui
connect(sGui->getWebDataServices(), &CWebDataServices::swiftDbAllDataRead, this, &CAirportSmallCompleter::onAirportsChanged);
connect(ui->le_Icao, &QLineEdit::editingFinished, this, &CAirportSmallCompleter::onIcaoChanged);
connect(ui->le_Icao, &QLineEdit::editingFinished, this, &CAirportSmallCompleter::editingFinished);
connect(ui->tb_Dialog, &QToolButton::clicked, this, &CAirportSmallCompleter::showAirportsDialog);
connect(ui->pb_Dialog, &QPushButton::clicked, this, &CAirportSmallCompleter::showAirportsDialog);
this->onAirportsChanged();
}
@@ -80,13 +80,13 @@ namespace BlackGui
void CAirportSmallCompleter::setReadOnly(bool readOnly)
{
ui->le_Icao->setReadOnly(readOnly);
ui->tb_Dialog->setEnabled(!readOnly);
ui->pb_Dialog->setEnabled(!readOnly);
}
void CAirportSmallCompleter::clear()
{
ui->le_Icao->clear();
this->m_current = CAirport();
m_current = CAirport();
}
void CAirportSmallCompleter::onIcaoChanged()