[Kst] extragear/graphics/kst/src/widgets

George Staikos staikos at kde.org
Fri Apr 21 15:27:04 CEST 2006


SVN commit 532179 by staikos:

drops go to the end of the list


 M  +3 -0      vectorlistview.cpp  


--- trunk/extragear/graphics/kst/src/widgets/vectorlistview.cpp #532178:532179
@@ -63,9 +63,12 @@
   QDataStream ds(data, IO_ReadOnly);
   QStringList entries;
   ds >> entries;
+  QListViewItem *last = lastItem();
   for (QStringList::ConstIterator i = entries.begin(); i != entries.end(); ++i) {
     QListViewItem *j = new QListViewItem(this, *i);
     j->setDragEnabled(true);
+    j->moveItem(last);
+    last = j;
   }
 
   clearSelection();


More information about the Kst mailing list