aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/checkablemessagebox.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-12-10 17:10:17 +0100
committerEike Ziller <eike.ziller@qt.io>2018-12-18 09:53:36 +0000
commit8770d83fc8bd71691e7cbb5114a1c0b4b8cb4ed8 (patch)
treefee2c821d811b903581761a10dd506d046839bbd /src/libs/utils/checkablemessagebox.h
parent5330502978094074ad1039b19f7a579ae4852871 (diff)
Add general UI introduction
Adds a Help > UI Introduction, which highlights basic aspects of the Qt Creator UI. The pages to show are defined in a format that can later move into a text based configuration file like JSON. It specifies an optional object name of a widget to highlight, a title, a brief description and a longer description (potentially with tables, lists and other simple HTML). Fixes: QTCREATORBUG-21585 Change-Id: Idb64c87e1d752bc24437588278093a96be0eeddb Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/libs/utils/checkablemessagebox.h')
-rw-r--r--src/libs/utils/checkablemessagebox.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/utils/checkablemessagebox.h b/src/libs/utils/checkablemessagebox.h
index 3367ce02b16..c6359f72cd2 100644
--- a/src/libs/utils/checkablemessagebox.h
+++ b/src/libs/utils/checkablemessagebox.h
@@ -117,6 +117,10 @@ public:
QAbstractButton *clickedButton() const;
QDialogButtonBox::StandardButton clickedStandardButton() const;
+ // check and set "ask again" status
+ static bool shouldAskAgain(QSettings *settings, const QString &settingsSubKey);
+ static void doNotAskAgain(QSettings *settings, const QString &settingsSubKey);
+
// Conversion convenience
static QMessageBox::StandardButton dialogButtonBoxToMessageBoxButton(QDialogButtonBox::StandardButton);
static void resetAllDoNotAskAgainQuestions(QSettings *settings);