-rw-r--r-- | korganizer/kolistview.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 4a6e17d..6acee75 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -779,17 +779,20 @@ void KOListView::showDates() | |||
779 | { | 779 | { |
780 | showDates(true); | 780 | showDates(true); |
781 | } | 781 | } |
782 | 782 | ||
783 | void KOListView::hideDates() | 783 | void KOListView::hideDates() |
784 | { | 784 | { |
785 | showDates(false); | 785 | showDates(false); |
786 | } | 786 | } |
787 | 787 | void KOListView::resetFocus() | |
788 | { | ||
789 | mListView->setFocus(); | ||
790 | } | ||
788 | void KOListView::updateView() | 791 | void KOListView::updateView() |
789 | { | 792 | { |
790 | mListView->setFocus(); | 793 | mListView->setFocus(); |
791 | if ( mListView->firstChild () ) | 794 | if ( mListView->firstChild () ) |
792 | mListView->setCurrentItem( mListView->firstChild () ); | 795 | mListView->setCurrentItem( mListView->firstChild () ); |
793 | } | 796 | } |
794 | void KOListView::updateConfig() | 797 | void KOListView::updateConfig() |
795 | { | 798 | { |
@@ -1070,21 +1073,22 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e) | |||
1070 | e->accept(); | 1073 | e->accept(); |
1071 | break; | 1074 | break; |
1072 | case Qt::Key_I: { | 1075 | case Qt::Key_I: { |
1073 | QListViewItem* cn; | 1076 | QListViewItem* cn; |
1074 | cn = currentItem(); | 1077 | cn = currentItem(); |
1075 | if ( cn ) { | 1078 | if ( cn ) { |
1076 | KOListViewItem* ci = (KOListViewItem*)( cn ); | 1079 | KOListViewItem* ci = (KOListViewItem*)( cn ); |
1077 | if ( ci ){ | 1080 | if ( ci ){ |
1078 | emit showIncidence( ci->data()); | 1081 | //emit showIncidence( ci->data()); |
1079 | cn = cn->nextSibling(); | 1082 | cn = cn->nextSibling(); |
1080 | if ( cn ) { | 1083 | if ( cn ) { |
1081 | setCurrentItem ( cn ); | 1084 | setCurrentItem ( cn ); |
1082 | ensureItemVisible ( cn ); | 1085 | ensureItemVisible ( cn ); |
1086 | emit showIncidence( ci->data()); | ||
1083 | } | 1087 | } |
1084 | } | 1088 | } |
1085 | } | 1089 | } |
1086 | e->accept(); | 1090 | e->accept(); |
1087 | } | 1091 | } |
1088 | break; | 1092 | break; |
1089 | case Qt::Key_Return: | 1093 | case Qt::Key_Return: |
1090 | case Qt::Key_Enter: | 1094 | case Qt::Key_Enter: |