summaryrefslogtreecommitdiffstats
path: root/kate
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-15 01:15:55 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-15 01:15:55 -0500
commitb0fa10df6cf9ba377d6bfdef719efc8ca4fe57a0 (patch)
treec3266fae784c054424834041ee6a4a3352641ee6 /kate
parent46a657f7108284d4f02107d11fa407cbf95b86b9 (diff)
downloadtdebase-b0fa10df6cf9ba377d6bfdef719efc8ca4fe57a0.tar.gz
tdebase-b0fa10df6cf9ba377d6bfdef719efc8ca4fe57a0.zip
Add drag and drop to kate file list in manual mode
Diffstat (limited to 'kate')
-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 ();
}
}