VirtualBox

Changeset 30694 in vbox


Ignore:
Timestamp:
Jul 7, 2010 9:24:18 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: UITexturedSegmentedButton for non OSX

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

Legend:

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

    r30356 r30694  
    292292}
    293293
     294UITexturedSegmentedButton::UITexturedSegmentedButton(int cCount, QWidget *pParent /* = 0 */)
     295  : UIRoundRectSegmentedButton(cCount, pParent)
     296{
     297    for (int i=0; i < m_pButtons.size(); ++i)
     298    {
     299        m_pButtons.at(i)->setAutoExclusive(true);
     300        m_pButtons.at(i)->setCheckable(true);
     301    }
     302}
     303
    294304/********************************************************************************
    295305 *
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISpecialControls.h

    r30356 r30694  
    243243    void clicked(int iSegment);
    244244
    245 private:
    246     /* Private member vars */
     245protected:
     246    /* Protected member vars */
    247247    QList<QIToolButton*> m_pButtons;
    248248    QSignalMapper *m_pSignalMapper;
     
    254254
    255255public:
    256     UITexturedSegmentedButton(int cCount, QWidget *pParent = 0)
    257       : UIRoundRectSegmentedButton(cCount, pParent) {}
     256    UITexturedSegmentedButton(int cCount, QWidget *pParent = 0);
    258257};
    259258
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