forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -277,7 +277,7 @@ QMessageBox::StandardButton CheckableMessageBox::dialogButtonBoxToMessageBoxButt
|
||||
return static_cast<QMessageBox::StandardButton>(int(db));
|
||||
}
|
||||
|
||||
bool askAgain(QSettings *settings, const QString &settingsSubKey)
|
||||
bool CheckableMessageBox::shouldAskAgain(QSettings *settings, const QString &settingsSubKey)
|
||||
{
|
||||
if (QTC_GUARD(settings)) {
|
||||
settings->beginGroup(QLatin1String(kDoNotAskAgainKey));
|
||||
@@ -309,7 +309,7 @@ void initDoNotAskAgainMessageBox(CheckableMessageBox &messageBox, const QString
|
||||
messageBox.setDefaultButton(defaultButton);
|
||||
}
|
||||
|
||||
void doNotAskAgain(QSettings *settings, const QString &settingsSubKey)
|
||||
void CheckableMessageBox::doNotAskAgain(QSettings *settings, const QString &settingsSubKey)
|
||||
{
|
||||
if (!settings)
|
||||
return;
|
||||
@@ -337,7 +337,7 @@ CheckableMessageBox::doNotAskAgainQuestion(QWidget *parent, const QString &title
|
||||
QDialogButtonBox::StandardButton acceptButton)
|
||||
|
||||
{
|
||||
if (!askAgain(settings, settingsSubKey))
|
||||
if (!shouldAskAgain(settings, settingsSubKey))
|
||||
return acceptButton;
|
||||
|
||||
CheckableMessageBox messageBox(parent);
|
||||
@@ -365,7 +365,7 @@ CheckableMessageBox::doNotShowAgainInformation(QWidget *parent, const QString &t
|
||||
QDialogButtonBox::StandardButton defaultButton)
|
||||
|
||||
{
|
||||
if (!askAgain(settings, settingsSubKey))
|
||||
if (!shouldAskAgain(settings, settingsSubKey))
|
||||
return defaultButton;
|
||||
|
||||
CheckableMessageBox messageBox(parent);
|
||||
|
||||
Reference in New Issue
Block a user