summaryrefslogtreecommitdiffstats
path: root/tdeui/tdelistview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-09 11:08:39 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-09 11:08:39 -0500
commit216794724ca89104ad394ea9e55f5fdba1523707 (patch)
tree4a251ae0a6044deb28074b1b1d2896d76700777d /tdeui/tdelistview.cpp
parente1eaf5a90159b023cb4c0c9e5c68acba397c1457 (diff)
downloadtdelibs-216794724ca89104ad394ea9e55f5fdba1523707.tar.gz
tdelibs-216794724ca89104ad394ea9e55f5fdba1523707.zip
Add protected helper methods to better handle rubberband operations outside of a TDEListView in file manager mode
This relates to Bug 1961
Diffstat (limited to 'tdeui/tdelistview.cpp')
-rw-r--r--tdeui/tdelistview.cpp14
1 files changed, 14 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