diff options
author | Timothy Pearson <[email protected]> | 2012-05-15 01:15:55 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-05-15 01:15:55 -0500 |
commit | b0fa10df6cf9ba377d6bfdef719efc8ca4fe57a0 (patch) | |
tree | c3266fae784c054424834041ee6a4a3352641ee6 /kate/app | |
parent | 46a657f7108284d4f02107d11fa407cbf95b86b9 (diff) | |
download | tdebase-b0fa10df6cf9ba377d6bfdef719efc8ca4fe57a0.tar.gz tdebase-b0fa10df6cf9ba377d6bfdef719efc8ca4fe57a0.zip |
Add drag and drop to kate file list in manual mode
Diffstat (limited to 'kate/app')
-rw-r--r-- | kate/app/katefilelist.cpp | 6 |
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 (); } } |