diff options
| author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-08-26 20:37:03 -0300 |
|---|---|---|
| committer | Sandro S. Andrade <sandroandrade@kde.org> | 2013-08-27 01:43:50 +0200 |
| commit | bc5342512ed3605bbd1953eaf395fe137ca239f0 (patch) | |
| tree | fd88531fde61ba7c0e0695ba860589b28ce57ebe /src/modeling/qmodelingobject.h | |
| parent | ec14050b84782321d2a3a6254aa488e7c716cad9 (diff) | |
Add initial support for QObject export of QModelingObjects
Still needs initialization from XMI-defined default values
Change-Id: Iac8d90155f4f7bb8d092d81bc3a610efb7c58979
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/modeling/qmodelingobject.h')
| -rw-r--r-- | src/modeling/qmodelingobject.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modeling/qmodelingobject.h b/src/modeling/qmodelingobject.h index 70ee46e0..fca7d302 100644 --- a/src/modeling/qmodelingobject.h +++ b/src/modeling/qmodelingobject.h @@ -43,6 +43,8 @@ #include <QtModeling/QtModelingGlobal> +#include <QtCore/QVariant> + QT_BEGIN_HEADER QT_BEGIN_NAMESPACE @@ -52,15 +54,19 @@ QT_MODULE(QtModeling) #define QM_D(Class) Class##Private *d = dynamic_cast<Class##Private *>(d_ptr); #define QM_Q(Class) Class *q = dynamic_cast<Class *>(q_ptr); +class QObject; + class QModelingObjectPrivate; class Q_MODELING_EXPORT QModelingObject { public: - QModelingObject(bool create_d_ptr = true); + QModelingObject(); virtual ~QModelingObject(); + QObject *asQObject() const; + protected: - void set_d_ptr(QModelingObjectPrivate *d_ptr); + QModelingObject(QModelingObjectPrivate *dd); QModelingObjectPrivate *d_ptr; }; |
