summaryrefslogtreecommitdiffabout
path: root/korganizer/kolistview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kolistview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kolistview.cpp9
1 files changed, 8 insertions, 1 deletions
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()