diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-01-11 12:11:59 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-11 12:17:18 +0100 |
commit | 5c6a88c638e7446576775dfcec1721ed19b0af15 (patch) | |
tree | d4ee3077c87a4ca7911cfd20e148a9c3814495f3 /src/designer/src/components/propertyeditor/brushpropertymanager.h | |
parent | 2e46d1654dda94f068cc042b0c7d8df7ea9817bd (diff) |
Qt Designer: Simplify property editor for translatable properties.
- Introduce sub-propertymanager for translatable properties
inheriting PropertySheetTranslatableData.
- Use common enumeration values for sub-propertymanager functions
to make it easier to chain them.
Task-number: QTBUG-8926
Task-number: QTBUG-20440
Change-Id: I8e99aa01fdca7e474a0ec83b7209a28a2a689bf9
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/designer/src/components/propertyeditor/brushpropertymanager.h')
-rw-r--r-- | src/designer/src/components/propertyeditor/brushpropertymanager.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/designer/src/components/propertyeditor/brushpropertymanager.h b/src/designer/src/components/propertyeditor/brushpropertymanager.h index d82d624b4..a4ddf4cca 100644 --- a/src/designer/src/components/propertyeditor/brushpropertymanager.h +++ b/src/designer/src/components/propertyeditor/brushpropertymanager.h @@ -69,9 +69,8 @@ public: bool uninitializeProperty(QtProperty *property); // Call from slotValueChanged(). - enum ValueChangedResult { NoMatch, Unchanged, Changed }; - ValueChangedResult valueChanged(QtVariantPropertyManager *vm, QtProperty *property, const QVariant &value); - ValueChangedResult setValue(QtVariantPropertyManager *vm, QtProperty *property, const QVariant &value); + int valueChanged(QtVariantPropertyManager *vm, QtProperty *property, const QVariant &value); + int setValue(QtVariantPropertyManager *vm, QtProperty *property, const QVariant &value); bool valueText(const QtProperty *property, QString *text) const; bool valueIcon(const QtProperty *property, QIcon *icon) const; |