summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/propertyobject.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch)
treeacaf47eb0fa12142d3896416a69e74cbf5a72242 /kdevdesigner/designer/propertyobject.h
downloadtdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz
tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/propertyobject.h')
-rw-r--r--kdevdesigner/designer/propertyobject.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/kdevdesigner/designer/propertyobject.h b/kdevdesigner/designer/propertyobject.h
new file mode 100644
index 00000000..c8445239
--- /dev/null
+++ b/kdevdesigner/designer/propertyobject.h
@@ -0,0 +1,43 @@
+#ifndef PROPERTYOBJECT_H
+#define PROPERTYOBJECT_H
+
+#include <qobject.h>
+#include <qwidgetlist.h>
+#include <qcursor.h>
+
+class PropertyObject : public QObject
+{
+public:
+ QMetaObject *metaObject() const { return (QMetaObject*)mobj; }
+ const char *className() const { return "PropertyObject"; }
+ QObject* qObject() { return (QObject*)this; }
+private:
+ static QMetaObject *metaObj;
+
+public:
+ PropertyObject( const QWidgetList &objs );
+
+ bool setProperty( const char *name, const QVariant& value );
+ QVariant property( const char *name ) const;
+
+ void mdPropertyChanged( const QString &property, bool changed );
+ bool mdIsPropertyChanged( const QString &property );
+ void mdSetPropertyComment( const QString &property, const QString &comment );
+ QString mdPropertyComment( const QString &property );
+ void mdSetFakeProperty( const QString &property, const QVariant &value );
+ QVariant mdFakeProperty( const QString &property );
+ void mdSetCursor( const QCursor &c );
+ QCursor mdCursor();
+ void mdSetPixmapKey( int pixmap, const QString &arg );
+ QString mdPixmapKey( int pixmap );
+ void mdSetExportMacro( const QString &macro );
+ QString mdExportMacro();
+ QWidgetList widgetList() const { return objects; }
+
+private:
+ QWidgetList objects;
+ const QMetaObject *mobj;
+
+};
+
+#endif