[Kstars-devel] KDE/kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Fri May 2 00:34:11 CEST 2008
SVN commit 803095 by harris:
Make arrow keys work in Find Object tool.
CCMAIL: kstars-devel at kde.org
M +2 -2 finddialog.cpp
--- trunk/KDE/kdeedu/kstars/kstars/finddialog.cpp #803094:803095
@@ -264,7 +264,7 @@
int currentRow = ui->SearchList->currentIndex().row();
if ( currentRow > 0 ) {
QModelIndex selectItem = sortModel->index( currentRow-1, sortModel->filterKeyColumn(), QModelIndex() );
- ui->SearchList->selectionModel()->select( selectItem, QItemSelectionModel::ClearAndSelect );
+ ui->SearchList->selectionModel()->setCurrentIndex( selectItem, QItemSelectionModel::SelectCurrent );
}
break;
}
@@ -273,7 +273,7 @@
int currentRow = ui->SearchList->currentIndex().row();
if ( currentRow < sortModel->rowCount()-1 ) {
QModelIndex selectItem = sortModel->index( currentRow+1, sortModel->filterKeyColumn(), QModelIndex() );
- ui->SearchList->selectionModel()->select( selectItem, QItemSelectionModel::ClearAndSelect );
+ ui->SearchList->selectionModel()->setCurrentIndex( selectItem, QItemSelectionModel::SelectCurrent );
}
break;
}
More information about the Kstars-devel
mailing list