Changeset 63923 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 21, 2016 2:40:16 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp
r63920 r63923 220 220 } 221 221 222 enum223 {224 Dtls = 0,225 Snap226 };227 228 222 UIVMDesktop::UIVMDesktop(UIToolBar *pToolBar, QAction *pRefreshAction, QWidget *pParent) 229 223 : QIWithRetranslateUI<QWidget>(pParent) … … 241 235 { 242 236 /* Configure segmented-button: */ 243 m_pHeaderBtn->setIcon( Dtls, UIIconPool::iconSet(":/vm_settings_16px.png",244 ":/vm_settings_disabled_16px.png"));245 m_pHeaderBtn->setIcon(S nap, UIIconPool::iconSet(":/snapshot_take_16px.png",246 ":/snapshot_take_disabled_16px.png"));237 m_pHeaderBtn->setIcon(SegmentType_Details, UIIconPool::iconSet(":/vm_settings_16px.png", 238 ":/vm_settings_disabled_16px.png")); 239 m_pHeaderBtn->setIcon(SegmentType_Snapshots, UIIconPool::iconSet(":/snapshot_take_16px.png", 240 ":/snapshot_take_disabled_16px.png")); 247 241 /* Add segmented-buttons into layout: */ 248 242 pLayout->addWidget(m_pHeaderBtn); … … 333 327 name += QString(" (%1)").arg(count); 334 328 } 335 m_pHeaderBtn->setTitle(S nap, name);329 m_pHeaderBtn->setTitle(SegmentType_Snapshots, name); 336 330 337 331 /* Refresh the snapshots widget: */ 338 332 if (!machine.isNull()) 339 333 { 340 m_pHeaderBtn->setEnabled(S nap, true);334 m_pHeaderBtn->setEnabled(SegmentType_Snapshots, true); 341 335 m_pSnapshotsPane->setMachine(machine); 342 336 } … … 347 341 void UIVMDesktop::lockSnapshots() 348 342 { 349 m_pHeaderBtn->animateClick( Dtls);350 m_pHeaderBtn->setEnabled(S nap, false);343 m_pHeaderBtn->animateClick(SegmentType_Details); 344 m_pHeaderBtn->setEnabled(SegmentType_Snapshots, false); 351 345 } 352 346 … … 358 352 void UIVMDesktop::retranslateUi() 359 353 { 360 m_pHeaderBtn->setTitle( Dtls, tr("&Details"));354 m_pHeaderBtn->setTitle(SegmentType_Details, tr("&Details")); 361 355 } 362 356 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.h
r63804 r63923 45 45 Q_OBJECT; 46 46 47 /** Segmented-button segment types. */ 48 enum SegmentType 49 { 50 SegmentType_Details = 0, 51 SegmentType_Snapshots 52 }; 53 47 54 signals: 48 55
Note:
See TracChangeset
for help on using the changeset viewer.