VirtualBox

Changeset 8418 in vbox


Ignore:
Timestamp:
Apr 28, 2008 12:47:49 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30264
Message:

VBoxMediaComboBox: extending getId(...) method to let get the desired id.

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

Legend:

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

    r8155 r8418  
    4343    void  setUseEmptyItem (bool);
    4444    void  setBelongsTo (const QUuid &);
    45     QUuid getId();
     45    QUuid getId (int aId = -1);
    4646    QUuid getBelongsTo();
    4747    void  setCurrentItem (const QUuid &);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaComboBox.cpp

    r8155 r8418  
    249249}
    250250
    251 QUuid VBoxMediaComboBox::getId()
    252 {
    253     return mUuidList.isEmpty() ? QUuid() : QUuid (mUuidList [currentItem()]);
     251QUuid VBoxMediaComboBox::getId (int aId)
     252{
     253    return mUuidList.isEmpty() ? QUuid() :
     254           aId == -1 ? QUuid (mUuidList [currentItem()]) :
     255           QUuid (mUuidList [aId]);
    254256}
    255257
Note: See TracChangeset for help on using the changeset viewer.

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