Ref T506, partially reverted QDockWidget overlay messages

* for some reasons overlay message do not work with COverlayMessagesDockWidget when floating
* so using COverlayMessagesFrame for ATC/Cockpit again
* COverlayMessagesFrame does not have the issue with floating
This commit is contained in:
Klaus Basan
2019-01-07 20:26:13 +01:00
committed by Mat Sutcliffe
parent dda468b899
commit 8bb1915d97
6 changed files with 10 additions and 53 deletions

View File

@@ -58,7 +58,7 @@ namespace BlackGui
namespace Components
{
CAtcStationComponent::CAtcStationComponent(QWidget *parent) :
QFrame(parent),
COverlayMessagesFrame(parent),
CIdentifiable(this),
ui(new Ui::CAtcStationComponent)
{
@@ -70,7 +70,7 @@ namespace BlackGui
CUpperCaseValidator *ucv = new CUpperCaseValidator(ui->le_AtcStationsOnlineMetar);
ui->le_AtcStationsOnlineMetar->setValidator(ucv);
this->deferredActivate(this);
this->activateTextMessages(true);
// some icons
ui->tb_AtcStationsAtisReload->setIcon(CIcons::atis());
@@ -469,7 +469,7 @@ namespace BlackGui
void CAtcStationComponent::showOverlayInlineTextMessage()
{
CEnableForDockWidgetInfoArea::showOverlayInlineTextMessage(TextMessagesCom1);
COverlayMessagesFrame::showOverlayInlineTextMessage(TextMessagesCom1);
}
void CAtcStationComponent::onDetailsToggled(bool checked)