some fixes

* as of slack discussion with MG, made area finding a bit more robust
* removed unused function in keypadarea
* added unit test subproject for GUI
This commit is contained in:
Klaus Basan
2015-07-13 19:20:31 +02:00
committed by Mathew Sutcliffe
parent 03e16e37e7
commit f8c83ce2a3
15 changed files with 230 additions and 19 deletions

View File

@@ -217,12 +217,6 @@ namespace BlackGui
return nullptr;
}
CAircraft CMainKeypadAreaComponent::getOwnAircraft() const
{
if (!this->getIContextOwnAircraft()) { return CAircraft(); }
return this->getIContextOwnAircraft()->getOwnAircraft();
}
void CMainKeypadAreaComponent::unsetInfoAreaButtons()
{
ui->pb_MainAircrafts->setChecked(false);
@@ -241,8 +235,9 @@ namespace BlackGui
CIdentifier CMainKeypadAreaComponent::keypadIdentifier()
{
if (m_identifier.getName().isEmpty())
{
m_identifier = CIdentifier(QStringLiteral("KEYPADAREACOMPONENT"));
}
return m_identifier;
}