summaryrefslogtreecommitdiff
path: root/src/libs/utils/savedaction.h
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-05-29 11:06:10 +0200
committerhjk <hjk@theqtcompany.com>2015-06-04 10:32:27 +0000
commitf3ad26b23df1e877955121d6e3d849209c6c13a7 (patch)
tree6f1e6b05c6d96a225e66c74b742e18f194f71ff1 /src/libs/utils/savedaction.h
parentdfa0d1373448f7e5fb200b420752252c0d089716 (diff)
downloadqt-creator-f3ad26b23df1e877955121d6e3d849209c6c13a7.tar.gz
Utils: Add a text variant to SavedAction for use in dialogs
Usually the same as the text() for use in menus, but with different capitalization. Also, restrict the QAbstractButton case to QCheckBox. That's the only case where it is used. Change-Id: Iaf87265a214891b83fa5604eb69290e2160c57f0 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/savedaction.h')
-rw-r--r--src/libs/utils/savedaction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/utils/savedaction.h b/src/libs/utils/savedaction.h
index bfeaa7b344..ed4450e99f 100644
--- a/src/libs/utils/savedaction.h
+++ b/src/libs/utils/savedaction.h
@@ -75,11 +75,13 @@ public:
QString toString() const;
+ QString dialogText() const;
+ void setDialogText(const QString &dialogText);
+
signals:
void valueChanged(const QVariant &newValue);
private:
- void uncheckableButtonClicked();
void checkableButtonClicked(bool);
void lineEditEditingFinished();
void pathChooserEditingFinished();
@@ -92,6 +94,7 @@ private:
QVariant m_defaultValue;
QString m_settingsKey;
QString m_settingsGroup;
+ QString m_dialogText;
QWidget *m_widget;
ApplyMode m_applyMode;
};