diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-11-21 15:28:57 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-24 15:06:31 +0100 |
commit | 722cbfe7384aa5692af4c3f03b562082fadcb93c (patch) | |
tree | 3e0c75c4a7a81d73faf7b88103ec7b3769f1254a /src/widgets | |
parent | 90b67743d1bdcb6d98e7d10d2b304b500285ec58 (diff) |
Move QScopedLoopLevelCounter to qthread_p.h
... and use it in QCoreApplication::notifyInterna() instead of
"reinventing" the wheel there. The constructor and destructor for
QScopedLoopLevelCounter are inline, so the class does not need to be
exported.
Change-Id: I7af5a4ef0987f277bcc50c1057f3c74152f3d79d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/kernel/qapplication_p.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/widgets/kernel/qapplication_p.h b/src/widgets/kernel/qapplication_p.h index d0674d4585..c353a2967c 100644 --- a/src/widgets/kernel/qapplication_p.h +++ b/src/widgets/kernel/qapplication_p.h @@ -68,7 +68,6 @@ #include "QtCore/qhash.h" #include "QtCore/qpointer.h" #include "private/qcoreapplication_p.h" -#include <private/qthread_p.h> #include "QtCore/qpoint.h" #include <QTime> #include <QWindowSystemInterface> @@ -263,17 +262,6 @@ typedef struct tagGESTURECONFIG #endif // Q_WS_WIN -class QScopedLoopLevelCounter -{ - QThreadData *threadData; -public: - QScopedLoopLevelCounter(QThreadData *threadData) - : threadData(threadData) - { ++threadData->loopLevel; } - ~QScopedLoopLevelCounter() - { --threadData->loopLevel; } -}; - struct FontHash : public QHash<QByteArray, QFont> { FontHash(); |