summaryrefslogtreecommitdiffstats
path: root/src/core/qpostman.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-09-11 17:58:38 +0200
committerSean Harmer <sean.harmer@kdab.com>2014-09-28 17:16:40 +0200
commitbb65f92dcd780b753124314d72ef761944c99353 (patch)
tree2ce7ba8afbc9e974df57ef2236c168ba8c3e45af /src/core/qpostman.cpp
parentd720a4b7d412dd763f9dec72925b9191435cb4c5 (diff)
QScene implements QSceneInterface
Make all classes use QSceneInterface QScene has a QMutex to protect read/write accesses but maybe the mutex needs to be available to the QChangeArbiter as well so that it can perform longer locking, not just for the retrival or lookup of an observable. Change-Id: If1dfb5e853f9506bb20f327204cdcdeb46bd4a85 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/qpostman.cpp')
-rw-r--r--src/core/qpostman.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/qpostman.cpp b/src/core/qpostman.cpp
index 9e831d7e2..cb583df0d 100644
--- a/src/core/qpostman.cpp
+++ b/src/core/qpostman.cpp
@@ -53,13 +53,13 @@ class QPostmanPrivate : public QObjectPrivate
public:
QPostmanPrivate(QPostman *qq)
: QObjectPrivate()
- , m_sceneLookup(Q_NULLPTR)
+ , m_scene(Q_NULLPTR)
{
q_ptr = qq;
}
Q_DECLARE_PUBLIC(QPostman)
- QScene *m_sceneLookup;
+ QSceneInterface *m_scene;
};
QPostman::QPostman(QObject *parent)
@@ -68,10 +68,10 @@ QPostman::QPostman(QObject *parent)
qRegisterMetaType<QSharedPointer<QSceneChange> >("QSharedPointer<QSceneChanged>");
}
-void QPostman::setSceneLookup(QScene *scene)
+void QPostman::setScene(QSceneInterface *scene)
{
Q_D(QPostman);
- d->m_sceneLookup = scene;
+ d->m_scene = scene;
}
void QPostman::sceneChangeEvent(const QSceneChangePtr &)