From b411ec2d8961d07c3e2e9aefc9e04322b7851859 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 17 Apr 2005 14:27:55 +0000 Subject: qdebugcleanup --- (limited to 'korganizer/kolistview.cpp') diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 341f473..e1b393d 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp @@ -331,6 +331,7 @@ KOListView::~KOListView() { delete mPopupMenu; } + QString KOListView::getWhatsThisText(QPoint p) { KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p ); @@ -428,6 +429,7 @@ void KOListView::setAlarm() topLevelWidget()->setCaption( i18n("Canged alarm for %1 items").arg( count ) ); qDebug("KO: Set alarm for %d items", count); calendar()->reInitAlarmSettings(); + QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); } void KOListView::setCategories( bool removeOld ) { @@ -475,6 +477,7 @@ void KOListView::setCategories( bool removeOld ) delete temp;; addIncidence( inc ); } + QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); } void KOListView::beamSelected() @@ -699,6 +702,7 @@ void KOListView::writeToFile( bool iCal ) topLevelWidget()->setCaption(mes); } } + QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); } void KOListView::deleteAll() { @@ -829,8 +833,11 @@ void KOListView::hideDates() { showDates(false); } + void KOListView::resetFocus() -{ +{ + topLevelWidget()->setActiveWindow(); + topLevelWidget()->raise(); mListView->setFocus(); } void KOListView::updateView() -- cgit v0.9.0.2