diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2015-12-04 11:11:52 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-12-12 13:10:03 +0000 |
commit | b93a30ab9e11663921fd583700f992da2a6b8448 (patch) | |
tree | b4ecec98111bb3f01c9ff56bac40444f2eea8b9f | |
parent | bc285fd8cdb2f8892998906fd30fe08210b582bf (diff) |
Make the p-impl really private
We don't inherit from that class and it's not designed to be inherited
from. So make the p-impl completely private and remove the useless ctor.
Change-Id: If66c8aa171a2293da6a068db68e61e516fafac42
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r-- | src/core/aspects/qaspectengine.cpp | 12 | ||||
-rw-r--r-- | src/core/aspects/qaspectengine.h | 3 |
2 files changed, 1 insertions, 14 deletions
diff --git a/src/core/aspects/qaspectengine.cpp b/src/core/aspects/qaspectengine.cpp index f51e6c61e..5ac6f8c5d 100644 --- a/src/core/aspects/qaspectengine.cpp +++ b/src/core/aspects/qaspectengine.cpp @@ -113,18 +113,6 @@ QAspectEngine::QAspectEngine(QObject *parent) d->m_aspectThread->waitForStart(QThread::HighestPriority); } -/*! \internal */ -QAspectEngine::QAspectEngine(QAspectEnginePrivate &dd, QObject *parent) - : QObject(dd, parent) -{ - Q_D(QAspectEngine); - d->m_scene = new QScene(this); - d->m_postman = new QPostman(this); - d->m_postman->setScene(d->m_scene); - d->m_aspectThread = new QAspectThread(this); - d->m_aspectThread->waitForStart(QThread::HighestPriority); -} - QAspectEngine::~QAspectEngine() { Q_D(QAspectEngine); diff --git a/src/core/aspects/qaspectengine.h b/src/core/aspects/qaspectengine.h index 2396c5d5a..ef30a2a56 100644 --- a/src/core/aspects/qaspectengine.h +++ b/src/core/aspects/qaspectengine.h @@ -73,9 +73,8 @@ public: QVariant executeCommand(const QString &command); -protected: +private: Q_DECLARE_PRIVATE(QAspectEngine) - QAspectEngine(QAspectEnginePrivate &dd, QObject *parent = 0); }; } // namespace Qt3DCore |