summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-08-05 21:04:00 (UTC)
committer zautrix <zautrix>2005-08-05 21:04:00 (UTC)
commit90585d5946407bdb8783bcb369ef7483c869995d (patch) (unidiff)
tree10b1b1b2580e6f341d83522b13440925a55e108b /korganizer
parent6bf157dca5ab703c7f1674c117cc62d9675f4bde (diff)
downloadkdepimpi-90585d5946407bdb8783bcb369ef7483c869995d.zip
kdepimpi-90585d5946407bdb8783bcb369ef7483c869995d.tar.gz
kdepimpi-90585d5946407bdb8783bcb369ef7483c869995d.tar.bz2
fixxx
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kolistview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp
index e560ce4..b236c2d 100644
--- a/korganizer/kolistview.cpp
+++ b/korganizer/kolistview.cpp
@@ -1276,24 +1276,26 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
1276 cn = currentItem(); 1276 cn = currentItem();
1277 if ( cn ) { 1277 if ( cn ) {
1278 KOListViewItem* ci = (KOListViewItem*)( cn ); 1278 KOListViewItem* ci = (KOListViewItem*)( cn );
1279 if ( ci ){ 1279 if ( ci ){
1280 if ( e->state() == ShiftButton ) 1280 if ( e->state() == ShiftButton )
1281 ci->setSelected( false ); 1281 ci->setSelected( false );
1282 else 1282 else
1283 ci->setSelected( true ); 1283 ci->setSelected( true );
1284 cn = cn->nextSibling(); 1284 cn = cn->nextSibling();
1285 if ( cn ) { 1285 if ( cn ) {
1286 setCurrentItem ( cn ); 1286 setCurrentItem ( cn );
1287 ensureItemVisible ( cn ); 1287 ensureItemVisible ( cn );
1288 } else {
1289 emit currentChanged( ci );
1288 } 1290 }
1289 } 1291 }
1290 } 1292 }
1291 e->accept(); 1293 e->accept();
1292 } 1294 }
1293 break; 1295 break;
1294 default: 1296 default:
1295 e->ignore(); 1297 e->ignore();
1296 } 1298 }
1297} 1299}
1298KOListViewListView::KOListViewListView(KOListView * lv ) 1300KOListViewListView::KOListViewListView(KOListView * lv )
1299 : KListView( lv, "kolistlistview", false ) 1301 : KListView( lv, "kolistlistview", false )