mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +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:
@@ -41,10 +41,11 @@ namespace BlackGui
|
||||
//! \copydoc COverlayMessages::showOverlayMessagesWithConfirmation
|
||||
void showOverlayMessagesWithConfirmation(
|
||||
const BlackMisc::CStatusMessageList &messages,
|
||||
const QString &confirmationMessage,
|
||||
std::function<void()> okLambda,
|
||||
int defaultButton = QMessageBox::Cancel,
|
||||
int timeOutMs = -1);
|
||||
const QString &confirmationMessage,
|
||||
std::function<void()> okLambda,
|
||||
int defaultButton = QMessageBox::Cancel,
|
||||
int timeOutMs = -1
|
||||
);
|
||||
|
||||
public slots:
|
||||
//! \copydoc COverlayMessages::showOverlayMessages
|
||||
@@ -59,6 +60,9 @@ namespace BlackGui
|
||||
//! \copydoc COverlayMessages::showOverlayVariant
|
||||
void showOverlayVariant(const BlackMisc::CVariant &variant, int timeOutMs = -1);
|
||||
|
||||
//! \copydoc COverlayMessages::showOverlayImage
|
||||
void showOverlayImage(const BlackMisc::CPixmap &pixmap, int timeOutMs = -1);
|
||||
|
||||
protected:
|
||||
//! \copydoc QFrame::paintEvent
|
||||
virtual void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
Reference in New Issue
Block a user