summaryrefslogtreecommitdiffstats
path: root/qtpropertybrowser/src/qtpropertymanager.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2013-04-10 23:36:59 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2013-07-08 14:18:57 +0200
commit4ac977553f2b04a54feb74ebcbc90ef255d38895 (patch)
treeb426ed887797419a41994ab20e68e2e0454d52cb /qtpropertybrowser/src/qtpropertymanager.h
parent4d83ff38ad836e507730034293d092df40b6d034 (diff)
QtPropertyBrowser: Allow controlling whether to show text for bool values
This was a rather involved patch, but it avoids the need for using private API or duplicating QtBoolEdit (which is in a private header). Apart from adding support for this QtBoolEdit option to the QtCheckBoxFactory and the QtBoolPropertyManager, the setting can also be controlled via the 'textVisible' attribute associated with QtVariantProperty instances. Change-Id: Ia0c694ca852449c74cbe25429df69413211b45a5 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
Diffstat (limited to 'qtpropertybrowser/src/qtpropertymanager.h')
-rw-r--r--qtpropertybrowser/src/qtpropertymanager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qtpropertybrowser/src/qtpropertymanager.h b/qtpropertybrowser/src/qtpropertymanager.h
index 6eff26e..d6b94cc 100644
--- a/qtpropertybrowser/src/qtpropertymanager.h
+++ b/qtpropertybrowser/src/qtpropertymanager.h
@@ -115,11 +115,14 @@ public:
~QtBoolPropertyManager();
bool value(const QtProperty *property) const;
+ bool textVisible(const QtProperty *property) const;
public Q_SLOTS:
void setValue(QtProperty *property, bool val);
+ void setTextVisible(QtProperty *property, bool textVisible);
Q_SIGNALS:
void valueChanged(QtProperty *property, bool val);
+ void textVisibleChanged(QtProperty *property, bool);
protected:
QString valueText(const QtProperty *property) const;
QIcon valueIcon(const QtProperty *property) const;