Ref T639, unify the connect buttons

* toggle connection from button bar directly -> public
* use Qt::QueuedConnection
* allow to reset values
This commit is contained in:
Klaus Basan
2019-04-27 01:41:23 +02:00
parent 12953321da
commit 9a0f2263cc
4 changed files with 28 additions and 19 deletions

View File

@@ -245,7 +245,7 @@ void SwiftGuiStd::initGuiSignals()
if (!sApp || sApp->isShuttingDown()) { return; }
ui->sw_MainMiddle->setCurrentIndex(MainPageLogin);
});
connect(this, &SwiftGuiStd::currentMainInfoAreaChanged, ui->comp_Login, &CLoginComponent::mainInfoAreaChanged);
connect(this, &SwiftGuiStd::currentMainInfoAreaChanged, ui->comp_Login, &CLoginComponent::mainInfoAreaChanged, Qt::QueuedConnection);
// text messages
connect(ui->comp_MainInfoArea->getAtcStationComponent(), &CAtcStationComponent::requestTextMessageWidget, ui->comp_MainInfoArea->getTextMessageComponent(), &CTextMessageComponent::showCorrespondingTab, Qt::QueuedConnection);