Ref T203, overlay messages can be forced small and factors set

This commit is contained in:
Klaus Basan
2017-12-14 02:57:28 +01:00
parent a4d4bd7056
commit ceaf224a4f
4 changed files with 43 additions and 15 deletions

View File

@@ -68,6 +68,9 @@ namespace BlackGui
//! Display image
void setModeToImage();
//! Force small
void setForceSmall(bool force) { m_forceSmall = force; }
//! Set header text
void setHeaderText(const QString &header);
@@ -132,13 +135,14 @@ namespace BlackGui
private:
QScopedPointer<Ui::COverlayMessages> ui;
BlackMisc::CSettingReadOnly<BlackGui::Settings::TextMessageSettings> m_messageSettings { this };
QString m_header;
int m_lastConfirmation = QMessageBox::Cancel;
bool m_awaitingConfirmation = false;
bool m_hasKillButton = false;
std::function<void()> m_okLambda;
QTimer m_autoCloseTimer { this };
BlackMisc::CSettingReadOnly<Settings::TextMessageSettings> m_messageSettings { this };
QString m_header;
int m_lastConfirmation = QMessageBox::Cancel;
bool m_awaitingConfirmation = false;
bool m_hasKillButton = false;
bool m_forceSmall = false;
QTimer m_autoCloseTimer { this };
std::function<void()> m_okLambda; //!< called when confirmed as "OK"
QList<std::function<void()>> m_pendingMessageCalls;
//! Stylesheet changed