void KateArgumentHintTree::bottom( ) { QModelIndex current = moveCursor(MoveEnd, Qt::NoModifier); setCurrentIndex(current); if (current.isValid()) { setCurrentIndex(current); if (!model()->indexIsItem(current)) previousCompletion(); } }
bool KateArgumentHintTree::pageUp( ) { QModelIndex old = currentIndex(); QModelIndex current = moveCursor(MovePageUp, Qt::NoModifier); if (current.isValid()) { setCurrentIndex(current); if (!model()->indexIsItem(current)) if (!previousCompletion()) nextCompletion(); } return current != old; }
bool KateCompletionTree::pageDown() { QModelIndex old = currentIndex(); QModelIndex current = moveCursor(MovePageDown, Qt::NoModifier); if (current.isValid()) { setCurrentIndex(current); if (!kateModel()->indexIsItem(current)) if (!nextCompletion()) { previousCompletion(); } } return current != old; }