- Timestamp:
- Mar 6, 2009 11:01:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxExportApplianceWzd.cpp
r17450 r17455 29 29 #include <QDir> 30 30 31 class VMListWidgetItems: public QListWidgetItem 32 { 33 public: 34 VMListWidgetItems (QPixmap &aIcon, QString &aText, QListWidget *aParent) 35 : QListWidgetItem (aIcon, aText, aParent) {} 36 37 /* Sort like in the VM selector of the main window */ 38 bool operator< (const QListWidgetItem &aOther) const 39 { 40 return text().toLower() < aOther.text().toLower(); 41 } 42 }; 43 31 44 //////////////////////////////////////////////////////////////////////////////// 32 45 // VBoxExportApplianceWzd … … 188 201 enabled = false; 189 202 } 190 QListWidgetItem *item = new QListWidgetItem(icon, name, mVMListWidget);203 QListWidgetItem *item = new VMListWidgetItems (icon, name, mVMListWidget); 191 204 item->setData (Qt::UserRole, uuid); 192 205 if (!enabled)
Note:
See TracChangeset
for help on using the changeset viewer.