VirtualBox

Changeset 54440 in vbox


Ignore:
Timestamp:
Feb 24, 2015 12:21:10 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 6632: Virtual Medium Manager should now reflect item UUIDs.

File:
1 edited

Legend:

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

    r52730 r54440  
    12051205            prepareTreeWidget(type, type == UIMediumType_HardDisk ? 3 : 2);
    12061206            /* Prepare information-container: */
    1207             prepareInformationContainer(type, type == UIMediumType_HardDisk ? 5 : 2);
     1207            prepareInformationContainer(type, type == UIMediumType_HardDisk ? 6 : 3);
    12081208        }
    12091209    }
     
    16141614                           formatFieldText(QApplication::translate("VBoxMediaManagerDlg", "<i>Not&nbsp;Attached</i>"), false) :
    16151615                           formatFieldText(pCurrentItem->usage());
     1616        const QString strID = pCurrentItem->id();
    16161617        if (infoField(UIMediumType_HardDisk, 0))
    16171618            infoField(UIMediumType_HardDisk, 0)->setText(pCurrentItem->hardDiskType());
     
    16241625        if (infoField(UIMediumType_HardDisk, 4))
    16251626            infoField(UIMediumType_HardDisk, 4)->setText(strUsage);
     1627        if (infoField(UIMediumType_HardDisk, 5))
     1628            infoField(UIMediumType_HardDisk, 5)->setText(strID);
    16261629    }
    16271630
     
    16501653                           formatFieldText(QApplication::translate("VBoxMediaManagerDlg", "<i>Not&nbsp;Attached</i>"), false) :
    16511654                           formatFieldText(pCurrentItem->usage());
     1655        const QString strID = pCurrentItem->id();
    16521656        if (infoField(UIMediumType_DVD, 0))
    16531657            infoField(UIMediumType_DVD, 0)->setText(formatFieldText(pCurrentItem->location(), true, "end"));
    16541658        if (infoField(UIMediumType_DVD, 1))
    16551659            infoField(UIMediumType_DVD, 1)->setText(strUsage);
     1660        if (infoField(UIMediumType_DVD, 2))
     1661            infoField(UIMediumType_DVD, 2)->setText(strID);
    16561662    }
    16571663
     
    16801686                           formatFieldText(QApplication::translate("VBoxMediaManagerDlg", "<i>Not&nbsp;Attached</i>"), false) :
    16811687                           formatFieldText(pCurrentItem->usage());
     1688        const QString strID = pCurrentItem->id();
    16821689        if (infoField(UIMediumType_Floppy, 0))
    16831690            infoField(UIMediumType_Floppy, 0)->setText(formatFieldText(pCurrentItem->location(), true, "end"));
    16841691        if (infoField(UIMediumType_Floppy, 1))
    16851692            infoField(UIMediumType_Floppy, 1)->setText(strUsage);
     1693        if (infoField(UIMediumType_Floppy, 2))
     1694            infoField(UIMediumType_Floppy, 2)->setText(strID);
    16861695    }
    16871696
     
    17931802    if (infoLabel(UIMediumType_HardDisk, 4))
    17941803        infoLabel(UIMediumType_HardDisk, 4)->setText(QApplication::translate("VBoxMediaManagerDlg", "Attached to:"));
     1804    if (infoLabel(UIMediumType_HardDisk, 5))
     1805        infoLabel(UIMediumType_HardDisk, 5)->setText(QApplication::translate("VBoxMediaManagerDlg", "UUID:"));
    17951806
    17961807    /* Translate CD tree-widget: */
     
    18071818    if (infoLabel(UIMediumType_DVD, 1))
    18081819        infoLabel(UIMediumType_DVD, 1)->setText(QApplication::translate("VBoxMediaManagerDlg", "Attached to:"));
     1820    if (infoLabel(UIMediumType_DVD, 2))
     1821        infoLabel(UIMediumType_DVD, 2)->setText(QApplication::translate("VBoxMediaManagerDlg", "UUID:"));
    18091822
    18101823    /* Translate FD tree-widget: */
     
    18211834    if (infoLabel(UIMediumType_Floppy, 1))
    18221835        infoLabel(UIMediumType_Floppy, 1)->setText(QApplication::translate("VBoxMediaManagerDlg", "Attached to:"));
     1836    if (infoLabel(UIMediumType_Floppy, 2))
     1837        infoLabel(UIMediumType_Floppy, 2)->setText(QApplication::translate("VBoxMediaManagerDlg", "UUID:"));
    18231838
    18241839    /* Translate progress-bar: */
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