VirtualBox

Changeset 8418

Show
Ignore:
Timestamp:
04/28/08 14:47:49 (9 months ago)
Author:
vboxsync
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy