summaryrefslogtreecommitdiffstats
path: root/src/modeling/qmodelingobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modeling/qmodelingobject.h')
-rw-r--r--src/modeling/qmodelingobject.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modeling/qmodelingobject.h b/src/modeling/qmodelingobject.h
index 17efd691..70ee46e0 100644
--- a/src/modeling/qmodelingobject.h
+++ b/src/modeling/qmodelingobject.h
@@ -49,16 +49,18 @@ QT_BEGIN_NAMESPACE
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 QModelingObjectPrivate;
class Q_MODELING_EXPORT QModelingObject
{
public:
QModelingObject(bool create_d_ptr = true);
+ virtual ~QModelingObject();
protected:
void set_d_ptr(QModelingObjectPrivate *d_ptr);
-
-private:
QModelingObjectPrivate *d_ptr;
};