Changeset 9600 in vbox for trunk/src/VBox
- Timestamp:
- Jun 11, 2008 11:37:00 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxMediaComboBox.h
r9496 r9600 41 41 bool aUseEmptyItem = false); 42 42 ~VBoxMediaComboBox() {} 43 44 static QString fullItemName (const QString &aSrc); 43 45 44 46 void refresh(); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxMediaComboBox.cpp
r9496 r9600 75 75 if (!icon.isNull()) 76 76 mPmError = icon.pixmap (14, 14); 77 } 78 79 QString 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())); 77 85 } 78 86 … … 201 209 { 202 210 /* 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); 206 212 /* Update warning/error icons */ 207 213 QPixmap *pixmap = 0;
Note:
See TracChangeset
for help on using the changeset viewer.