Changeset 30694 in vbox
- Timestamp:
- Jul 7, 2010 9:24:18 AM (15 years ago)
- 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 292 292 } 293 293 294 UITexturedSegmentedButton::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 294 304 /******************************************************************************** 295 305 * -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISpecialControls.h
r30356 r30694 243 243 void clicked(int iSegment); 244 244 245 pr ivate:246 /* Pr ivatemember vars */245 protected: 246 /* Protected member vars */ 247 247 QList<QIToolButton*> m_pButtons; 248 248 QSignalMapper *m_pSignalMapper; … … 254 254 255 255 public: 256 UITexturedSegmentedButton(int cCount, QWidget *pParent = 0) 257 : UIRoundRectSegmentedButton(cCount, pParent) {} 256 UITexturedSegmentedButton(int cCount, QWidget *pParent = 0); 258 257 }; 259 258
Note:
See TracChangeset
for help on using the changeset viewer.