mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
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:
committed by
Mathew Sutcliffe
parent
03e16e37e7
commit
f8c83ce2a3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user