Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
libQtWebKit-devel
qt-debug-timer.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qt-debug-timer.diff of Package libQtWebKit-devel
--- src/corelib/kernel/qeventdispatcher_unix.cpp +++ src/corelib/kernel/qeventdispatcher_unix.cpp @@ -534,6 +534,20 @@ 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(); + 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
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor