Add protected helper methods to better handle rubberband operations outside of a TDEListView in file manager mode

This relates to Bug 1961
(cherry picked from commit 216794724c)
v3.5.13-sru
Timothy Pearson 10 years ago committed by Slávek Banko
parent 13fddea637
commit 24d1217f49

@ -1515,6 +1515,20 @@ bool KListView::automaticSelection() const
return d->selectedBySimpleMove;
}
void KListView::resetKeyboardSelectionOperation()
{
d->wasShiftEvent = false;
d->selectionDirection = 0;
}
void KListView::setActiveMultiSelectItem(TQListViewItem *item) {
TQListViewItem* origItem = currentItem();
if (!d->initialFileManagerItem) {
d->initialFileManagerItem = origItem;
}
setCurrentItem(item);
}
void KListView::fileManagerKeyPressEvent (TQKeyEvent* e)
{
//don't care whether it's on the keypad or not

@ -912,6 +912,21 @@ protected:
*/
void resetAutoSelection();
/**
* In FileManager selection mode: reset the keyboard selection operation;
* e.g. after completion of a mouse rubberband operation
* @since 14.0
*/
void resetKeyboardSelectionOperation();
/**
* In FileManager selection mode: set the current keyboard cursor selection
* item; e.g. during a mouse rubberband operation
* @param direction down is 1, up is -1
* @since 14.0
*/
void setActiveMultiSelectItem(TQListViewItem *item);
/**
* @deprecated This is just here for binary compatibility. Use the signal
* in TQListView instead.

Loading…
Cancel
Save