mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
follow up of refs #643, allow to display icon in overlay window
* some optimization to check if icon is available * menus for context menu * allow to display icon/image in overlay window
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/network/textmessage.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackmisc/pixmap.h"
|
||||
#include "blackmisc/variant.h"
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
@@ -55,6 +56,9 @@ namespace BlackGui
|
||||
//! Single Text message mode
|
||||
void setModeToTextMessage();
|
||||
|
||||
//! Display image
|
||||
void setModeToImage();
|
||||
|
||||
//! Set header text
|
||||
void setHeaderText(const QString &header);
|
||||
|
||||
@@ -81,6 +85,12 @@ namespace BlackGui
|
||||
//! Info message, based on text message
|
||||
void showOverlayTextMessage(const BlackMisc::Network::CTextMessage &textMessage, int timeOutMs = -1);
|
||||
|
||||
//! Image
|
||||
void showOverlayImage(const BlackMisc::CPixmap &image, int timeOutMs = -1);
|
||||
|
||||
//! Image
|
||||
void showOverlayImage(const QPixmap &image, int timeOutMs = -1);
|
||||
|
||||
//! Display one of the supported types
|
||||
void showOverlayVariant(const BlackMisc::CVariant &variant, int timeOutMs = -1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user