Changeset 67422 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 15, 2017 11:10:02 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116149
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r67419 r67422 247 247 /* Make sure at least Details-pane raised: */ 248 248 if (m_pContainerDetails->currentWidget() == m_pPaneDesktop) 249 m_pContainerDetails->setCurrentWidget(m_pPaneDetails);249 sltPerformSegmentedButtonSwitch(SegmentType_Details); 250 250 251 251 /* Refresh Tools-pane if requested: */ … … 257 257 /* Make sure Desktop-pane raised: */ 258 258 if (m_pContainerDetails->currentWidget() != m_pPaneDesktop) 259 m_pContainerDetails->setCurrentWidget(m_pPaneDesktop);259 sltPerformSegmentedButtonSwitch(SegmentType_None); 260 260 261 261 /* Note that the machine becomes inaccessible (or if the last VM gets … … 1085 1085 { 1086 1086 /* Perform silent segmented-button switch: */ 1087 m_pSegmentedButton->setSelected(iSegment); 1087 if (iSegment >= 0 && iSegment < m_pSegmentedButton->count()) 1088 m_pSegmentedButton->setSelected(iSegment); 1088 1089 /* Manually handle that switch as well: */ 1089 1090 sltHandleSegmentedButtonSwitch(iSegment); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r67419 r67422 56 56 SegmentType_Details, 57 57 SegmentType_Tools, 58 SegmentType_None, 58 59 }; 59 60 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISpecialControls.cpp
r63962 r67422 269 269 } 270 270 271 int UIRoundRectSegmentedButton::count() const 272 { 273 return m_pButtons.size(); 274 } 275 271 276 void UIRoundRectSegmentedButton::setTitle(int iSegment, const QString &aTitle) 272 277 { -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISpecialControls.h
r63962 r67422 231 231 ~UIRoundRectSegmentedButton(); 232 232 233 int count() const; 234 233 235 void setTitle(int iSegment, const QString &aTitle); 234 236 void setToolTip(int iSegment, const QString &strTip);
Note:
See TracChangeset
for help on using the changeset viewer.