VirtualBox

Changeset 17455 in vbox for trunk


Ignore:
Timestamp:
Mar 6, 2009 11:01:29 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4-OVF: corrected sorting of the VM's a little bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxExportApplianceWzd.cpp

    r17450 r17455  
    2929#include <QDir>
    3030
     31class VMListWidgetItems: public QListWidgetItem
     32{
     33public:
     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
    3144////////////////////////////////////////////////////////////////////////////////
    3245// VBoxExportApplianceWzd
     
    188201            enabled = false;
    189202        }
    190         QListWidgetItem *item = new QListWidgetItem (icon, name, mVMListWidget);
     203        QListWidgetItem *item = new VMListWidgetItems (icon, name, mVMListWidget);
    191204        item->setData (Qt::UserRole, uuid);
    192205        if (!enabled)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette