mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Ref T131, display in overlay window (BlackMisc::CStatusMessageList)
This commit is contained in:
@@ -45,4 +45,12 @@ namespace BlackGui
|
||||
m_mwaOverlayFrame->showOverlayMessage(message, timeOutMs);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool IMainWindowAccess::displayInOverlayWindow(const CStatusMessageList &messages, int timeOutMs)
|
||||
{
|
||||
if (messages.isEmpty()) { return false; }
|
||||
if (!m_mwaOverlayFrame) { return false; }
|
||||
m_mwaOverlayFrame->showOverlayMessages(messages, false, timeOutMs);
|
||||
return true;
|
||||
}
|
||||
} // ns
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#define BLACKGUI_MAINWINDOWACCESS_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/statusmessage.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
@@ -40,6 +40,9 @@ namespace BlackGui
|
||||
//! Display in overlay window
|
||||
virtual bool displayInOverlayWindow(const BlackMisc::CStatusMessage &message, int timeOutMs = -1);
|
||||
|
||||
//! Display in overlay window
|
||||
virtual bool displayInOverlayWindow(const BlackMisc::CStatusMessageList &messages, int timeOutMs = -1);
|
||||
|
||||
protected:
|
||||
Components::CLogComponent *m_mwaLogComponent = nullptr; //!< the log component if any
|
||||
CManagedStatusBar *m_mwaStatusBar = nullptr; //!< status bar if any
|
||||
|
||||
Reference in New Issue
Block a user