diff options
| author | Peter Penz <[email protected]> | 2007-08-31 05:16:04 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-08-31 05:16:04 +0000 |
| commit | 5e27ba1de2155585c7141cc9e0a6540945c5ca24 (patch) | |
| tree | e165cfcec2266f9b0913dd34fd6bb4e4f8d75217 /src/statusbarspaceinfo.cpp | |
| parent | 52648c9634f60ce2fe84dd888daa9f20fb967f9e (diff) | |
as David pointed out: Qt4 has a nicer approach for asynchronous events than using QTimer
svn path=/trunk/KDE/kdebase/apps/; revision=706669
Diffstat (limited to 'src/statusbarspaceinfo.cpp')
| -rw-r--r-- | src/statusbarspaceinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp index ef65149bd..117d63f16 100644 --- a/src/statusbarspaceinfo.cpp +++ b/src/statusbarspaceinfo.cpp @@ -99,7 +99,7 @@ void StatusBarSpaceInfo::paintEvent(QPaintEvent* /* event */) text = i18nc("@info:status", "Getting size..."); } else { text = QString(); - QTimer::singleShot(0, this, SLOT(hide())); + QMetaObject::invokeMethod(this, "hide", Qt::QueuedConnection); } } |
