summaryrefslogtreecommitdiffabout
path: root/korganizer/kolistview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kolistview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kolistview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp
index 341f473..e1b393d 100644
--- a/korganizer/kolistview.cpp
+++ b/korganizer/kolistview.cpp
@@ -330,8 +330,9 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
KOListView::~KOListView()
{
delete mPopupMenu;
}
+
QString KOListView::getWhatsThisText(QPoint p)
{
KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p );
if ( item )
@@ -427,8 +428,9 @@ 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 )
{
@@ -474,8 +476,9 @@ void KOListView::setCategories( bool removeOld )
mUidDict.remove( inc->uid() );
delete temp;;
addIncidence( inc );
}
+ QTimer::singleShot( 1, this, SLOT ( resetFocus() ) );
}
void KOListView::beamSelected()
{
@@ -698,8 +701,9 @@ void KOListView::writeToFile( bool iCal )
KOPrefs::instance()->mLastSaveFile = fn;
topLevelWidget()->setCaption(mes);
}
}
+ QTimer::singleShot( 1, this, SLOT ( resetFocus() ) );
}
void KOListView::deleteAll()
{
int icount = 0;
@@ -828,10 +832,13 @@ void KOListView::showDates()
void KOListView::hideDates()
{
showDates(false);
}
+
void KOListView::resetFocus()
{
+ topLevelWidget()->setActiveWindow();
+ topLevelWidget()->raise();
mListView->setFocus();
}
void KOListView::updateView()
{