summaryrefslogtreecommitdiffstats
path: root/kdeui/klistview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-09 11:08:39 -0500
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:22:55 +0100
commit24d1217f49309d104c9ae3877318e4c3b6a37cff (patch)
treef12ae48880bc56220a85d83887d0a2129d9b7bb6 /kdeui/klistview.cpp
parent13fddea637d2dd60d6bd094f64346bff8bbfd7d5 (diff)
downloadtdelibs-24d1217f49309d104c9ae3877318e4c3b6a37cff.tar.gz
tdelibs-24d1217f49309d104c9ae3877318e4c3b6a37cff.zip
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 216794724ca89104ad394ea9e55f5fdba1523707)
Diffstat (limited to 'kdeui/klistview.cpp')
-rw-r--r--kdeui/klistview.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/kdeui/klistview.cpp b/kdeui/klistview.cpp
index 2466f7652..6fbcb00c3 100644
--- a/kdeui/klistview.cpp
+++ b/kdeui/klistview.cpp
@@ -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