mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
Ref T489, overlay message support for download progress
This commit is contained in:
committed by
Mat Sutcliffe
parent
d71e5f289a
commit
fefeeac33b
@@ -27,6 +27,7 @@
|
||||
#include <QMessageBox>
|
||||
#include <QObject>
|
||||
#include <QSize>
|
||||
#include <QUrl>
|
||||
#include <QString>
|
||||
#include <functional>
|
||||
|
||||
@@ -163,6 +164,14 @@ namespace BlackGui
|
||||
WIDGET::repaint();
|
||||
}
|
||||
|
||||
//! \copydoc BlackGui::COverlayMessages::showHTMLMessage
|
||||
void showOverlayHTMLMessage(const QString &htmlMessage, int timeOutMs = -1)
|
||||
{
|
||||
this->initMinimalFrame();
|
||||
m_overlayMessages->showHTMLMessage(htmlMessage, timeOutMs);
|
||||
WIDGET::repaint();
|
||||
}
|
||||
|
||||
//! \copydoc BlackGui::COverlayMessages::showHTMLMessage
|
||||
void showOverlayHTMLMessage(const BlackMisc::CStatusMessage &message, int timeOutMs = -1)
|
||||
{
|
||||
@@ -171,6 +180,14 @@ namespace BlackGui
|
||||
WIDGET::repaint();
|
||||
}
|
||||
|
||||
//! \copydoc BlackGui::COverlayMessages::showDownloadProgress
|
||||
void showDownloadProgress(int progress, qint64 current, qint64 max, const QUrl &url, int timeOutMs = -1)
|
||||
{
|
||||
this->initMinimalFrame();
|
||||
m_overlayMessages->showDownloadProgress(progress, current, max, url, timeOutMs);
|
||||
WIDGET::repaint();
|
||||
}
|
||||
|
||||
//! \copydoc BlackGui::COverlayMessages::showOverlayImage
|
||||
void showOverlayInlineTextMessage(Components::TextMessageTab tab)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user