Changeset 4067 in vbox
- Timestamp:
- Aug 7, 2007 3:52:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui.h
r4062 r4067 69 69 70 70 int rtti() const { return QIRichListItemId; } 71 72 int compare (QListViewItem *aItem, int aColumn, bool aAscending) const 73 { 74 /* Sorting the children always by name: */ 75 if (parent() && aItem->parent()) 76 return QListViewItem::compare (aItem, 0, aAscending); 77 /* Sorting the root items always by key: */ 78 else if (!parent() && !aItem->parent()) 79 return QListViewItem::compare (aItem, 2, aAscending); 80 else 81 return QListViewItem::compare (aItem, aColumn, aAscending); 82 } 71 83 72 84 VBoxRichListItem* nextSibling() const … … 330 342 { 331 343 mDialogType = WrongType; 332 listView->setSorting ( -1);344 listView->setSorting (0); 333 345 new QIListViewSelectionPreserver (this, listView); 334 346 listView->setShowToolTips (false);
Note:
See TracChangeset
for help on using the changeset viewer.