diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-07-03 17:08:08 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-07-12 19:14:00 +0000 |
commit | 2b3f68d588c15830ebbacf55823b2af049d76b47 (patch) | |
tree | d4bbc39f0c19226f0adc67c4ad2131a4e460c170 /src/core/qchangearbiter.cpp | |
parent | 6fcaef11f89994cfc9f117a07cb64b0e8959da2c (diff) |
QChangeArbiter/QPostMan: batch frontend changes
- Updated unit tests
- Added QAbstractPostman and QAbstractArbiter as they are more than
QObserverInterfaces but still need to be easily testable.
Change-Id: I0fc2ce48031eecc9bf893798650ef68e9d7d8bb7
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/qchangearbiter.cpp')
-rw-r--r-- | src/core/qchangearbiter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/qchangearbiter.cpp b/src/core/qchangearbiter.cpp index 2bd807803..5c2446710 100644 --- a/src/core/qchangearbiter.cpp +++ b/src/core/qchangearbiter.cpp @@ -198,7 +198,7 @@ void QChangeArbiter::setScene(QScene *scene) m_scene = scene; } -QObserverInterface *QChangeArbiter::postman() const +QAbstractPostman *QChangeArbiter::postman() const { return m_postman; } @@ -264,12 +264,13 @@ void QChangeArbiter::sceneChangeEventWithLock(const QSceneChangeList &e) { QMutexLocker locker(&m_mutex); QChangeQueue *localChangeQueue = m_tlsChangeQueue.localData(); + qCDebug(ChangeArbiter) << Q_FUNC_INFO << "Handles " << e.size() << " changes at once"; localChangeQueue->insert(localChangeQueue->end(), e.begin(), e.end()); } // Either we have the postman or we could make the QChangeArbiter agnostic to the postman // but that would require adding it to every QObserverList in m_aspectObservations. -void QChangeArbiter::setPostman(QObserverInterface *postman) +void QChangeArbiter::setPostman(QAbstractPostman *postman) { if (m_postman != postman) { // Unregister old postman here if needed |