[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 85040] ark: drag & drop marks more files before draging work
From:       Henrique Pinto <stampede () coltec ! ufmg ! br>
Date:       2004-07-16 16:39:48
Message-ID: 20040716163948.12439.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=85040      
stampede coltec ufmg br changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From stampede coltec ufmg br  2004-07-16 18:39 -------
CVS commit by pinto: 


Fix Drag&Drop.

CCMAIL: 85040-done bugs kde org


  M +5 -18     filelistview.cpp   1.41
  M +0 -4      filelistview.h   1.23


--- kdeutils/ark/filelistview.cpp  #1.40:1.41
 @ -187,10 +187,11  @ FileListView::FileListView(ArkWidget *ba
         : KListView(parent, name), m_pParent(baseArk)
 {
-  sortColumn = 0;
-  increasing = TRUE;
   QWhatsThis::add(this, i18n("This area is for displaying information about the \
files contained within an archive."));  
-  setMouseTracking(false);
-  setSelectionModeExt(FileManager);
+  setMultiSelection( true );
+  setSelectionModeExt( FileManager );
+  setDragEnabled( true );
+  setItemsMovable( false );
+  
   m_bPressed = false;
 }
 @ -236,18 +237,4  @ columnName FileListView::nameOfColumn( i
 }
 
-
-void FileListView::setSorting(int column, bool inc)
-{
-        if(sortColumn == column)
-        {
-                increasing = !inc;
-        }
-        else{
-                sortColumn = column;
-                increasing = inc;
-        }
-        KListView::setSorting(sortColumn, increasing);
-}
-
 QStringList FileListView::selectedFilenames() const
 {

--- kdeutils/ark/filelistview.h  #1.22:1.23
 @ -98,12 +98,8  @ protected:
 private:
   QMap<int, columnName> colMap;
-  int sortColumn;
-  bool increasing;
   ArkWidget *m_pParent;
 
   bool m_bPressed;
   QPoint presspos;  // this will save the click pos to correctly recognize drag \
                events
-
-  virtual void setSorting(int column, bool inc = TRUE);
 };


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic