Projects
Multimedia
A_tw-libqt4
qt-debug-timer.diff
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qt-debug-timer.diff of Package A_tw-libqt4
Index: src/corelib/kernel/qeventdispatcher_unix.cpp =================================================================== --- src/corelib/kernel/qeventdispatcher_unix.cpp.orig +++ src/corelib/kernel/qeventdispatcher_unix.cpp @@ -592,6 +592,22 @@ int QTimerInfoList::activateTimers() if (!firstTimerInfo) { firstTimerInfo = currentTimerInfo; + QObject* o = firstTimerInfo->obj; + static int debug_timer = -1; + if (debug_timer < 0) + debug_timer = getenv("QT_DEBUG_TIMER") ? 1 : 0; + if (debug_timer > 0) { + QString objPath = o->objectName(); + if(objPath.isEmpty() && o->parent()) objPath = QLatin1String("<") + o->parent()->metaObject()->className() + QLatin1String(">"); + else if(objPath.isEmpty() && !!o->parent()) objPath = QLatin1String("<No parent, no name>"); + for (; o->parent(); o = o->parent()) + if (!o->parent()->objectName().isEmpty()) + objPath.prepend(o->parent()->objectName() + "/"); + else + objPath.prepend(QLatin1String("<") + o->parent()->metaObject()->className() + QLatin1String(">/")); + qDebug("activating %d ms timer for %s", firstTimerInfo->interval.tv_sec * 1000 + + firstTimerInfo->interval.tv_usec / 1000, qPrintable(objPath)); + } } else if (firstTimerInfo == currentTimerInfo) { // avoid sending the same timer multiple times break;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.