VirtualBox

Changeset 6813 in vbox


Ignore:
Timestamp:
Feb 5, 2008 5:29:13 PM (17 years ago)
Author:
vboxsync
Message:

Using embedded list-box in media-combo-box (just as in most of qt themes) on all the qt themes.

File:
1 edited

Legend:

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

    r5999 r6813  
    4949    connect (this, SIGNAL (activated (int)),
    5050             this, SLOT (processActivated (int)));
    51     connect (listBox(), SIGNAL (onItem (QListBoxItem*)),
    52              this, SLOT (processOnItem (QListBoxItem*)));
     51
     52        /* in some qt themes embedded list-box is not used by default, so create it */
     53        if (!listBox())
     54                setListBox (new QListBox (this));
     55        if (listBox())
     56            connect (listBox(), SIGNAL (onItem (QListBoxItem*)),
     57                     this, SLOT (processOnItem (QListBoxItem*)));
    5358
    5459    /* cache pixmaps as class members */
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