From 722cbfe7384aa5692af4c3f03b562082fadcb93c Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Mon, 21 Nov 2011 15:28:57 +0100 Subject: 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 --- src/widgets/kernel/qapplication_p.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/widgets') 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 #include "QtCore/qpoint.h" #include #include @@ -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 { FontHash(); -- cgit v1.2.3