summaryrefslogtreecommitdiffstats
path: root/kate/app/katefilelist.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-15 01:15:55 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-08-26 16:41:34 +0200
commit6d0adde7839446b2b9cb4e86388176e2c2ad9e76 (patch)
tree76b92701fc63c5b9256c8f44471c7997f908c044 /kate/app/katefilelist.cpp
parentb23ab6be04ec0677235ae56338f16693fc31205f (diff)
downloadtdebase-6d0adde7839446b2b9cb4e86388176e2c2ad9e76.tar.gz
tdebase-6d0adde7839446b2b9cb4e86388176e2c2ad9e76.zip
Add drag and drop to kate file list in manual mode
(cherry picked from commit b0fa10df6cf9ba377d6bfdef719efc8ca4fe57a0)
Diffstat (limited to 'kate/app/katefilelist.cpp')
-rw-r--r--kate/app/katefilelist.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/kate/app/katefilelist.cpp b/kate/app/katefilelist.cpp
index bc5b0a133..bd2d0877b 100644
--- a/kate/app/katefilelist.cpp
+++ b/kate/app/katefilelist.cpp
@@ -102,7 +102,7 @@ KateFileList::KateFileList (KateMainWindow *main,
addColumn("Document Name");
setSelectionMode( TQListView::Single );
- setSorting( 0, true );
+ setSortType(KateFileList::sortByID);
setShowToolTips( false );
setupActions ();
@@ -408,9 +408,13 @@ void KateFileList::setSortType (int s)
m_sort = s;
if (m_sort == KateFileList::sortManual) {
setSorting( -1, true );
+ setDragEnabled(true);
+ setAcceptDrops(true);
}
else {
setSorting( 0, true );
+ setDragEnabled(false);
+ setAcceptDrops(false);
updateSort ();
}
}