Changeset 52202 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
- Timestamp:
- Jul 25, 2014 8:34:38 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95262
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r52184 r52202 75 75 * the linked key without the 'Host+' part we are adding it here. */ 76 76 QString hotKey = QString("Host+%1") 77 .arg(VBoxGlobal::extractKeyFromActionText( gpActionPool->action(UIActionIndexRT_M_View_T_Fullscreen)->text()));77 .arg(VBoxGlobal::extractKeyFromActionText(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen)->text())); 78 78 Assert(!hotKey.isEmpty()); 79 79 … … 446 446 447 447 /* Restrict 'Adjust Window', 'Status Bar' and 'Resize' actions for 'View' menu: */ 448 gpActionPool->toRuntime()->setRestrictionForMenuView(UIActionPool::UIActionRestrictionLevel_Logic,448 actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic, 449 449 (RuntimeMenuViewActionType) 450 450 (RuntimeMenuViewActionType_AdjustWindow | … … 453 453 454 454 /* Take care of view-action toggle state: */ 455 UIAction *pActionFullscreen = gpActionPool->action(UIActionIndexRT_M_View_T_Fullscreen);455 UIAction *pActionFullscreen = actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen); 456 456 if (!pActionFullscreen->isChecked()) 457 457 { … … 468 468 469 469 /* "View" actions connections: */ 470 connect( gpActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)),470 connect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 471 471 this, SLOT(sltChangeVisualStateToNormal())); 472 connect( gpActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)),472 connect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 473 473 this, SLOT(sltChangeVisualStateToSeamless())); 474 connect( gpActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)),474 connect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 475 475 this, SLOT(sltChangeVisualStateToScale())); 476 476 } … … 509 509 510 510 // TODO: Make this through action-pool. 511 m_pScreenLayout->setViewMenu( gpActionPool->action(UIActionIndexRT_M_View)->menu());511 m_pScreenLayout->setViewMenu(actionPool()->action(UIActionIndexRT_M_View)->menu()); 512 512 513 513 /* Create machine-window(s): */ … … 576 576 { 577 577 /* Prepare popup-menu: */ 578 foreach (QMenu *pMenu, gpActionPool->menus())578 foreach (QMenu *pMenu, actionPool()->menus()) 579 579 m_pPopupMenu->addMenu(pMenu); 580 580 } … … 619 619 { 620 620 /* "View" actions disconnections: */ 621 disconnect( gpActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)),621 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 622 622 this, SLOT(sltChangeVisualStateToNormal())); 623 disconnect( gpActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)),623 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 624 624 this, SLOT(sltChangeVisualStateToSeamless())); 625 disconnect( gpActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)),625 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 626 626 this, SLOT(sltChangeVisualStateToScale())); 627 627 … … 633 633 { 634 634 /* Take care of view-action toggle state: */ 635 UIAction *pActionFullscreen = gpActionPool->action(UIActionIndexRT_M_View_T_Fullscreen);635 UIAction *pActionFullscreen = actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen); 636 636 if (pActionFullscreen->isChecked()) 637 637 { … … 642 642 643 643 /* Allow 'Adjust Window', 'Status Bar' and 'Resize' actions for 'View' menu: */ 644 gpActionPool->toRuntime()->setRestrictionForMenuView(UIActionPool::UIActionRestrictionLevel_Logic,644 actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic, 645 645 RuntimeMenuViewActionType_Invalid); 646 646
Note:
See TracChangeset
for help on using the changeset viewer.