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

This relates to Bug 1961
pull/16/head
Timothy Pearson 10 years ago
parent e1eaf5a901
commit 216794724c

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

@ -996,6 +996,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