summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/qdesigner_propertysheet_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/qdesigner_propertysheet_p.h')
-rw-r--r--src/designer/src/lib/shared/qdesigner_propertysheet_p.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/designer/src/lib/shared/qdesigner_propertysheet_p.h b/src/designer/src/lib/shared/qdesigner_propertysheet_p.h
index 4da33b525..49380e1ee 100644
--- a/src/designer/src/lib/shared/qdesigner_propertysheet_p.h
+++ b/src/designer/src/lib/shared/qdesigner_propertysheet_p.h
@@ -155,6 +155,7 @@ public:
PropertyBuddy,
PropertyAccessibility,
PropertyGeometry,
+ PropertyChecked,
PropertyCheckable,
PropertyWindowTitle,
PropertyWindowIcon,
@@ -168,8 +169,14 @@ public:
};
enum ObjectType { ObjectNone, ObjectLabel, ObjectLayout, ObjectLayoutWidget };
+ enum ObjectFlag
+ {
+ CheckableProperty = 0x1 // Has a "checked" property depending on "checkable"
+ };
+ Q_DECLARE_FLAGS(ObjectFlags, ObjectFlag)
static ObjectType objectTypeFromObject(const QObject *o);
+ static ObjectFlags objectFlagsFromObject(const QObject *o);
static PropertyType propertyTypeFromName(const QString &name);
protected:
@@ -248,6 +255,8 @@ void QDesignerPropertySheetFactory<Object, PropertySheet>::registerExtension(QEx
// Standard property sheet
typedef QDesignerPropertySheetFactory<QObject, QDesignerPropertySheet> QDesignerDefaultPropertySheetFactory;
+Q_DECLARE_OPERATORS_FOR_FLAGS(QDesignerPropertySheet::ObjectFlags)
+
QT_END_NAMESPACE
#endif // QDESIGNER_PROPERTYSHEET_H