summaryrefslogtreecommitdiffstats
path: root/tdeui
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui')
-rw-r--r--tdeui/tdelistview.cpp14
-rw-r--r--tdeui/tdelistview.h15
2 files changed, 29 insertions, 0 deletions
diff --git a/tdeui/tdelistview.cpp b/tdeui/tdelistview.cpp
index b2965ab3e..ace1ea075 100644
--- a/tdeui/tdelistview.cpp
+++ b/tdeui/tdelistview.cpp
@@ -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
diff --git a/tdeui/tdelistview.h b/tdeui/tdelistview.h
index 950ce253a..f62e8f61e 100644
--- a/tdeui/tdelistview.h
+++ b/tdeui/tdelistview.h
@@ -997,6 +997,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.
*/