VirtualBox

Changeset 9600 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 11, 2008 11:37:00 AM (17 years ago)
Author:
vboxsync
Message:

Fe/Qt4: VBoxMediaComboBox now has function to return vdi name formatted in own format.

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxMediaComboBox.h

    r9496 r9600  
    4141                       bool aUseEmptyItem = false);
    4242    ~VBoxMediaComboBox() {}
     43
     44    static QString fullItemName (const QString &aSrc);
    4345
    4446    void  refresh();
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxMediaComboBox.cpp

    r9496 r9600  
    7575    if (!icon.isNull())
    7676        mPmError = icon.pixmap (14, 14);
     77}
     78
     79QString VBoxMediaComboBox::fullItemName (const QString &aSrc)
     80{
     81    /* Compose item's name */
     82    QFileInfo fi (aSrc);
     83    return QString ("%1 (%2)").arg (fi.fileName())
     84               .arg (QDir::convertSeparators (fi.absolutePath()));
    7785}
    7886
     
    201209{
    202210    /* Compose item's name */
    203     QFileInfo fi (aSrc);
    204     QString name = QString ("%1 (%2)").arg (fi.fileName())
    205                    .arg (QDir::convertSeparators (fi.absolutePath()));
     211    QString name = fullItemName (aSrc);
    206212    /* Update warning/error icons */
    207213    QPixmap *pixmap = 0;
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