mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 22:15:37 +08:00
Ref T177, addressing some overlay messages frame issues
* use enum for buttons * removed unused declaration setInnerFrameFactor * private slots -> private
This commit is contained in:
@@ -540,7 +540,7 @@ namespace BlackGui
|
||||
|
||||
bool CDbStashComponent::showOverlayMessagesWithConfirmation(
|
||||
const CStatusMessageList &msgs, bool appendOldMessages,
|
||||
const QString &confirmation, std::function<void ()> okLambda, int defaultButton, bool onlyErrors, int timeoutMs)
|
||||
const QString &confirmation, std::function<void ()> okLambda, QMessageBox::StandardButton defaultButton, bool onlyErrors, int timeoutMs)
|
||||
{
|
||||
if (msgs.isEmpty()) { return false; }
|
||||
if (!msgs.hasErrorMessages() && onlyErrors) { return false; }
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <QList>
|
||||
#include <QObject>
|
||||
#include <QScopedPointer>
|
||||
#include <QString>
|
||||
#include <QMessageBox>
|
||||
#include <QStringList>
|
||||
#include <functional>
|
||||
|
||||
@@ -185,7 +185,7 @@ namespace BlackGui
|
||||
bool showOverlayMessagesWithConfirmation(
|
||||
const BlackMisc::CStatusMessageList &msgs, bool appendOldMessages,
|
||||
const QString &confirmation, std::function<void()> okLambda,
|
||||
int defaultButton, bool onlyErrors = false, int timeoutMs = -1);
|
||||
QMessageBox::StandardButton defaultButton, bool onlyErrors = false, int timeoutMs = -1);
|
||||
|
||||
//! Display message
|
||||
bool showOverlayMessage(const BlackMisc::CStatusMessage &msg, int timeoutMs = -1);
|
||||
|
||||
Reference in New Issue
Block a user