Changeset 80652 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 8, 2019 6:19:53 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp
r76606 r80652 380 380 381 381 /* Inform the MIME data object of any changes in the current action. */ 382 connect(pDrag, SIGNAL(actionChanged(Qt::DropAction)),383 m_pMIMEData, SLOT(sltDropActionChanged(Qt::DropAction)));382 connect(pDrag, &QDrag::actionChanged, 383 m_pMIMEData, &UIDnDMIMEData::sltDropActionChanged); 384 384 385 385 /* Invoke this handler as data needs to be retrieved by our derived QMimeData class. */ 386 connect(m_pMIMEData, SIGNAL(sigGetData(Qt::DropAction, const QString&, QVariant::Type, QVariant&)),387 this, SLOT(sltGetData(Qt::DropAction, const QString&, QVariant::Type, QVariant&)));386 connect(m_pMIMEData, &UIDnDMIMEData::sigGetData, 387 this, &UIDnDHandler::sltGetData); 388 388 389 389 /* … … 807 807 return dropActs; 808 808 } 809 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r80222 r80652 469 469 setStateIcon(KDeviceActivity_Null, UIIconPool::iconSet(":/nw_disabled_16px.png")); 470 470 /* Configure machine state-change listener: */ 471 connect(m_pSession, SIGNAL(sigMachineStateChange()),472 this, SLOT(sltHandleMachineStateChange()));471 connect(m_pSession, &UISession::sigMachineStateChange, 472 this, &UIIndicatorNetwork::sltHandleMachineStateChange); 473 473 /* Fetch maximum network adapters count: */ 474 474 const CVirtualBox vbox = uiCommon().virtualBox(); … … 480 480 { 481 481 /* Configure auto-update timer: */ 482 connect(m_pTimerAutoUpdate, SIGNAL(timeout()), SLOT(sltUpdateNetworkIPs()));482 connect(m_pTimerAutoUpdate, &QTimer::timeout, this, &UIIndicatorNetwork::sltUpdateNetworkIPs); 483 483 /* Start timer immediately if machine is running: */ 484 484 sltHandleMachineStateChange(); … … 989 989 990 990 /* Configure machine state-change listener: */ 991 connect(m_pSession, SIGNAL(sigMachineStateChange()),992 this, SLOT(sltHandleMachineStateChange()));991 connect(m_pSession, &UISession::sigMachineStateChange, 992 this, &UIIndicatorFeatures::sltHandleMachineStateChange); 993 993 m_pTimerAutoUpdate = new QTimer(this); 994 994 if (m_pTimerAutoUpdate) … … 1147 1147 setStateIcon(4, UIIconPool::iconSet(":/mouse_can_seamless_uncaptured_16px.png")); 1148 1148 /* Configure connection: */ 1149 connect(pSession, SIGNAL(sigMouseStateChange(int)), this, SLOT(setState(int))); 1149 connect(pSession, &UISession::sigMouseStateChange, 1150 this, static_cast<void(UIIndicatorMouse::*)(int)>(&UIIndicatorMouse::setState)); 1150 1151 setState(pSession->mouseState()); 1151 1152 /* Translate finally: */ … … 1225 1226 setStateIcon(7, UIIconPool::iconSet(":/hostkey_captured_pressed_checked_16px.png")); 1226 1227 /* Configure connection: */ 1227 connect(pSession, SIGNAL(sigKeyboardStateChange(int)), this, SLOT(setState(int))); 1228 connect(pSession, &UISession::sigKeyboardStateChange, 1229 this, static_cast<void(UIIndicatorKeyboard::*)(int)>(&UIIndicatorKeyboard::setState)); 1228 1230 setState(pSession->keyboardState()); 1229 1231 /* Translate finally: */ … … 1264 1266 { 1265 1267 /* Make sure host-combination label will be updated: */ 1266 connect(gEDataManager, SIGNAL(sigRuntimeUIHostKeyCombinationChange()),1267 this, SLOT(sltUpdateAppearance()));1268 connect(gEDataManager, &UIExtraDataManager::sigRuntimeUIHostKeyCombinationChange, 1269 this, &UIIndicatorKeyboardExtension::sltUpdateAppearance); 1268 1270 /* Translate finally: */ 1269 1271 retranslateUi(); … … 1427 1429 { 1428 1430 /* Listen for the status-bar configuration changes: */ 1429 connect(gEDataManager, SIGNAL(sigStatusBarConfigurationChange(const QUuid &)),1430 this, SLOT(sltHandleConfigurationChange(const QUuid &)));1431 connect(gEDataManager, &UIExtraDataManager::sigStatusBarConfigurationChange, 1432 this, &UIIndicatorsPool::sltHandleConfigurationChange); 1431 1433 } 1432 1434 … … 1456 1458 { 1457 1459 /* Configure auto-update timer: */ 1458 connect(m_pTimerAutoUpdate, SIGNAL(timeout()),1459 this, SLOT(sltAutoUpdateIndicatorStates()));1460 connect(m_pTimerAutoUpdate, &QTimer::timeout, 1461 this, &UIIndicatorsPool::sltAutoUpdateIndicatorStates); 1460 1462 setAutoUpdateIndicatorStates(true); 1461 1463 } … … 1551 1553 } 1552 1554 /* Configure indicator: */ 1553 connect(m_pool.value(indicatorType), SIGNAL(sigContextMenuRequest(QIStatusBarIndicator*, QContextMenuEvent*)),1554 this, SLOT(sltContextMenuRequest(QIStatusBarIndicator*, QContextMenuEvent*)));1555 connect(m_pool.value(indicatorType), &QIStatusBarIndicator::sigContextMenuRequest, 1556 this, &UIIndicatorsPool::sltContextMenuRequest); 1555 1557 /* Insert indicator into main-layout at proper position: */ 1556 1558 m_pMainLayout->insertWidget(indicatorPosition(indicatorType), m_pool.value(indicatorType)); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r79640 r80652 1009 1009 1010 1010 /* Machine state-change updater: */ 1011 connect(uisession(), SIGNAL(sigMachineStateChange()), this, SLOT(sltMachineStateChanged()));1011 connect(uisession(), &UISession::sigMachineStateChange, this, &UIKeyboardHandler::sltMachineStateChanged); 1012 1012 1013 1013 /* Pressed keys: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r79365 r80652 237 237 /* Prepare async visual state type change handler: */ 238 238 qRegisterMetaType<UIVisualStateType>(); 239 connect(this, SIGNAL(sigRequestAsyncVisualStateChange(UIVisualStateType)),240 this, SLOT(sltChangeVisualState(UIVisualStateType)),239 connect(this, &UIMachine::sigRequestAsyncVisualStateChange, 240 this, &UIMachine::sltChangeVisualState, 241 241 Qt::QueuedConnection); 242 242 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r79365 r80652 821 821 { 822 822 /* Desktop resolution change (e.g. monitor hotplug): */ 823 connect(gpDesktop, SIGNAL(sigHostScreenResized(int)), this,824 SLOT(sltDesktopResized()));823 connect(gpDesktop, &UIDesktopWidgetWatchdog::sigHostScreenResized, 824 this, &UIMachineView::sltDesktopResized); 825 825 /* Scale-factor change: */ 826 connect(gEDataManager, SIGNAL(sigScaleFactorChange(const QUuid &)),827 this, SLOT(sltHandleScaleFactorChange(const QUuid &)));826 connect(gEDataManager, &UIExtraDataManager::sigScaleFactorChange, 827 this, &UIMachineView::sltHandleScaleFactorChange); 828 828 /* Scaling-optimization change: */ 829 connect(gEDataManager, SIGNAL(sigScalingOptimizationTypeChange(const QUuid &)),830 this, SLOT(sltHandleScalingOptimizationChange(const QUuid &)));829 connect(gEDataManager, &UIExtraDataManager::sigScalingOptimizationTypeChange, 830 this, &UIMachineView::sltHandleScalingOptimizationChange); 831 831 } 832 832 … … 834 834 { 835 835 /* Machine state-change updater: */ 836 connect(uisession(), SIGNAL(sigMachineStateChange()), this, SLOT(sltMachineStateChanged()));836 connect(uisession(), &UISession::sigMachineStateChange, this, &UIMachineView::sltMachineStateChanged); 837 837 } 838 838 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r79365 r80652 493 493 494 494 /* Prepare 'View' actions connections: */ 495 connect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)),496 this, SLOT(sltChangeVisualStateToNormal()));497 connect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)),498 this, SLOT(sltChangeVisualStateToSeamless()));499 connect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)),500 this, SLOT(sltChangeVisualStateToScale()));495 connect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), &UIAction::triggered, 496 this, &UIMachineLogicFullscreen::sltChangeVisualStateToNormal); 497 connect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), &UIAction::triggered, 498 this, &UIMachineLogicFullscreen::sltChangeVisualStateToSeamless); 499 connect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), &UIAction::triggered, 500 this, &UIMachineLogicFullscreen::sltChangeVisualStateToScale); 501 501 } 502 502 … … 532 532 /* Listen for frame-buffer resize: */ 533 533 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 534 connect(pMachineWindow, SIGNAL(sigFrameBufferResize()),535 this, SIGNAL(sigFrameBufferResize()));534 connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize, 535 this, &UIMachineLogicFullscreen::sigFrameBufferResize); 536 536 emit sigFrameBufferResize(); 537 537 538 538 /* Connect multi-screen layout change handler: */ 539 connect(m_pScreenLayout, SIGNAL(sigScreenLayoutChange()),540 this, SLOT(sltScreenLayoutChanged()));539 connect(m_pScreenLayout, &UIMultiScreenLayout::sigScreenLayoutChange, 540 this, &UIMachineLogicFullscreen::sltScreenLayoutChanged); 541 541 542 542 #ifdef VBOX_WS_MAC … … 548 548 { 549 549 /* Logic => window signals: */ 550 connect(this, SIGNAL(sigNotifyAboutNativeFullscreenShouldBeEntered(UIMachineWindow*)),551 pMachineWindow, SLOT(sltEnterNativeFullscreen(UIMachineWindow*)));552 connect(this, SIGNAL(sigNotifyAboutNativeFullscreenShouldBeExited(UIMachineWindow*)),553 pMachineWindow, SLOT(sltExitNativeFullscreen(UIMachineWindow*)));550 connect(this, &UIMachineLogicFullscreen::sigNotifyAboutNativeFullscreenShouldBeEntered, 551 pMachineWindow, &UIMachineWindow::sltEnterNativeFullscreen); 552 connect(this, &UIMachineLogicFullscreen::sigNotifyAboutNativeFullscreenShouldBeExited, 553 pMachineWindow, &UIMachineWindow::sltExitNativeFullscreen); 554 554 /* Window => logic signals: */ 555 connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenWillEnter()),556 this, SLOT(sltHandleNativeFullscreenWillEnter()),555 connect(pMachineWindow, &UIMachineWindow::sigNotifyAboutNativeFullscreenWillEnter, 556 this, &UIMachineLogicFullscreen::sltHandleNativeFullscreenWillEnter, 557 557 Qt::QueuedConnection); 558 connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenDidEnter()),559 this, SLOT(sltHandleNativeFullscreenDidEnter()),558 connect(pMachineWindow, &UIMachineWindow::sigNotifyAboutNativeFullscreenDidEnter, 559 this, &UIMachineLogicFullscreen::sltHandleNativeFullscreenDidEnter, 560 560 Qt::QueuedConnection); 561 connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenWillExit()),562 this, SLOT(sltHandleNativeFullscreenWillExit()),561 connect(pMachineWindow, &UIMachineWindow::sigNotifyAboutNativeFullscreenWillExit, 562 this, &UIMachineLogicFullscreen::sltHandleNativeFullscreenWillExit, 563 563 Qt::QueuedConnection); 564 connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenDidExit()),565 this, SLOT(sltHandleNativeFullscreenDidExit()),564 connect(pMachineWindow, &UIMachineWindow::sigNotifyAboutNativeFullscreenDidExit, 565 this, &UIMachineLogicFullscreen::sltHandleNativeFullscreenDidExit, 566 566 Qt::QueuedConnection); 567 connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenFailToEnter()),568 this, SLOT(sltHandleNativeFullscreenFailToEnter()),567 connect(pMachineWindow, &UIMachineWindow::sigNotifyAboutNativeFullscreenFailToEnter, 568 this, &UIMachineLogicFullscreen::sltHandleNativeFullscreenFailToEnter, 569 569 Qt::QueuedConnection); 570 570 } … … 642 642 { 643 643 /* "View" actions disconnections: */ 644 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)),645 this, SLOT(sltChangeVisualStateToNormal()));646 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)),647 this, SLOT(sltChangeVisualStateToSeamless()));648 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)),649 this, SLOT(sltChangeVisualStateToScale()));644 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), &QAction::triggered, 645 this, &UIMachineLogicFullscreen::sltChangeVisualStateToNormal); 646 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), &QAction::triggered, 647 this, &UIMachineLogicFullscreen::sltChangeVisualStateToSeamless); 648 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), &QAction::triggered, 649 this, &UIMachineLogicFullscreen::sltChangeVisualStateToScale); 650 650 651 651 /* Call to base-class: */ … … 876 876 } 877 877 #endif /* VBOX_WS_MAC */ 878 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r76606 r80652 118 118 119 119 /* Guest additions state-change updater: */ 120 connect(uisession(), SIGNAL(sigAdditionsStateActualChange()), this, SLOT(sltAdditionsStateChanged()));120 connect(uisession(), &UISession::sigAdditionsStateActualChange, this, &UIMachineViewFullscreen::sltAdditionsStateChanged); 121 121 } 122 122 … … 215 215 return workingArea().size(); 216 216 } 217 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r79365 r80652 274 274 /* Configure mini-toolbar: */ 275 275 m_pMiniToolBar->addMenus(actionPool()->menus()); 276 connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()),277 this, SLOT(sltShowMinimized()), Qt::QueuedConnection);278 connect(m_pMiniToolBar, SIGNAL(sigExitAction()),279 actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SLOT(trigger()));280 connect(m_pMiniToolBar, SIGNAL(sigCloseAction()),281 actionPool()->action(UIActionIndex_M_Application_S_Close), SLOT(trigger()));282 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutWindowActivationStolen()),283 this, SLOT(sltRevokeWindowActivation()), Qt::QueuedConnection);276 connect(m_pMiniToolBar, &UIMiniToolBar::sigMinimizeAction, 277 this, &UIMachineWindowFullscreen::sltShowMinimized, Qt::QueuedConnection); 278 connect(m_pMiniToolBar, &UIMiniToolBar::sigExitAction, 279 actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), &UIAction::trigger); 280 connect(m_pMiniToolBar, &UIMiniToolBar::sigCloseAction, 281 actionPool()->action(UIActionIndex_M_Application_S_Close), &UIAction::trigger); 282 connect(m_pMiniToolBar, &UIMiniToolBar::sigNotifyAboutWindowActivationStolen, 283 this, &UIMachineWindowFullscreen::sltRevokeWindowActivation, Qt::QueuedConnection); 284 284 } 285 285 } … … 609 609 } 610 610 #endif /* VBOX_WS_WIN */ 611 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r80576 r80652 249 249 connect(machineLogic()->uisession(), &UISession::sigSharedFolderChange, 250 250 this, &UIMachineWindowNormal::sltSharedFolderChange); 251 connect(machineLogic()->uisession(), SIGNAL(sigRecordingChange()),252 this, SLOT(sltRecordingChange()));251 connect(machineLogic()->uisession(), &UISession::sigRecordingChange, 252 this, &UIMachineWindowNormal::sltRecordingChange); 253 253 connect(machineLogic()->uisession(), &UISession::sigCPUExecutionCapChange, 254 254 this, &UIMachineWindowNormal::sltCPUExecutionCapChange); 255 connect(machineLogic()->uisession(), SIGNAL(sigInitialized()),256 this, SLOT(sltHandleSessionInitialized()));255 connect(machineLogic()->uisession(), &UISession::sigInitialized, 256 this, &UIMachineWindowNormal::sltHandleSessionInitialized); 257 257 } 258 258 … … 266 266 /* Configure menu-bar: */ 267 267 menuBar()->setContextMenuPolicy(Qt::CustomContextMenu); 268 connect(menuBar(), SIGNAL(customContextMenuRequested(const QPoint&)),269 this, SLOT(sltHandleMenuBarContextMenuRequest(const QPoint&)));270 connect(gEDataManager, SIGNAL(sigMenuBarConfigurationChange(const QUuid &)),271 this, SLOT(sltHandleMenuBarConfigurationChange(const QUuid &)));268 connect(menuBar(), &UIMenuBar::customContextMenuRequested, 269 this, &UIMachineWindowNormal::sltHandleMenuBarContextMenuRequest); 270 connect(gEDataManager, &UIExtraDataManager::sigMenuBarConfigurationChange, 271 this, &UIMachineWindowNormal::sltHandleMenuBarConfigurationChange); 272 272 /* Update menu-bar: */ 273 273 updateMenu(); … … 287 287 /* Configure status-bar: */ 288 288 statusBar()->setContextMenuPolicy(Qt::CustomContextMenu); 289 connect(statusBar(), SIGNAL(customContextMenuRequested(const QPoint&)),290 this, SLOT(sltHandleStatusBarContextMenuRequest(const QPoint&)));289 connect(statusBar(), &QIStatusBar::customContextMenuRequested, 290 this, &UIMachineWindowNormal::sltHandleStatusBarContextMenuRequest); 291 291 /* Create indicator-pool: */ 292 292 m_pIndicatorsPool = new UIIndicatorsPool(machineLogic()->uisession()); … … 294 294 { 295 295 /* Configure indicator-pool: */ 296 connect(m_pIndicatorsPool, SIGNAL(sigContextMenuRequest(IndicatorType, const QPoint&)),297 this, SLOT(sltHandleIndicatorContextMenuRequest(IndicatorType, const QPoint&)));296 connect(m_pIndicatorsPool, &UIIndicatorsPool::sigContextMenuRequest, 297 this, &UIMachineWindowNormal::sltHandleIndicatorContextMenuRequest); 298 298 /* Add indicator-pool into status-bar: */ 299 299 statusBar()->addPermanentWidget(m_pIndicatorsPool, 0); 300 300 } 301 301 /* Post-configure status-bar: */ 302 connect(gEDataManager, SIGNAL(sigStatusBarConfigurationChange(const QUuid &)),303 this, SLOT(sltHandleStatusBarConfigurationChange(const QUuid &)));302 connect(gEDataManager, &UIExtraDataManager::sigStatusBarConfigurationChange, 303 this, &UIMachineWindowNormal::sltHandleStatusBarConfigurationChange); 304 304 #ifdef VBOX_WS_MAC 305 305 /* Make sure the status-bar is aware of action hovering: */ 306 connect(actionPool(), SIGNAL(sigActionHovered(UIAction *)),307 this, SLOT(sltActionHovered(UIAction *)));306 connect(actionPool(), &UIActionPool::sigActionHovered, 307 this, &UIMachineWindowNormal::sltActionHovered); 308 308 #endif /* VBOX_WS_MAC */ 309 309 } … … 458 458 disconnect(machineLogic()->uisession(), &UISession::sigSharedFolderChange, 459 459 this, &UIMachineWindowNormal::sltSharedFolderChange); 460 disconnect(machineLogic()->uisession(), SIGNAL(sigRecordingChange()),461 this, SLOT(sltRecordingChange()));460 disconnect(machineLogic()->uisession(), &UISession::sigRecordingChange, 461 this, &UIMachineWindowNormal::sltRecordingChange); 462 462 disconnect(machineLogic()->uisession(), &UISession::sigCPUExecutionCapChange, 463 463 this, &UIMachineWindowNormal::sltCPUExecutionCapChange); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r79365 r80652 117 117 118 118 /* Prepare 'View' actions connections: */ 119 connect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)),120 this, SLOT(sltChangeVisualStateToNormal()));121 connect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)),122 this, SLOT(sltChangeVisualStateToFullscreen()));123 connect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)),124 this, SLOT(sltChangeVisualStateToSeamless()));119 connect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), &QAction::triggered, 120 this, &UIMachineLogicScale::sltChangeVisualStateToNormal); 121 connect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), &QAction::triggered, 122 this, &UIMachineLogicScale::sltChangeVisualStateToFullscreen); 123 connect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), &QAction::triggered, 124 this, &UIMachineLogicScale::sltChangeVisualStateToSeamless); 125 125 } 126 126 … … 148 148 /* Listen for frame-buffer resize: */ 149 149 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 150 connect(pMachineWindow, SIGNAL(sigFrameBufferResize()),151 this, SIGNAL(sigFrameBufferResize()));150 connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize, 151 this, &UIMachineLogicScale::sigFrameBufferResize); 152 152 emit sigFrameBufferResize(); 153 153 … … 196 196 { 197 197 /* "View" actions disconnections: */ 198 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)),199 this, SLOT(sltChangeVisualStateToNormal()));200 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)),201 this, SLOT(sltChangeVisualStateToFullscreen()));202 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)),203 this, SLOT(sltChangeVisualStateToSeamless()));198 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), &QAction::triggered, 199 this, &UIMachineLogicScale::sltChangeVisualStateToNormal); 200 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), &QAction::triggered, 201 this, &UIMachineLogicScale::sltChangeVisualStateToFullscreen); 202 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), &QAction::triggered, 203 this, &UIMachineLogicScale::sltChangeVisualStateToSeamless); 204 204 205 205 /* Call to base-class: */ … … 226 226 UIMachineLogic::cleanupActionGroups(); 227 227 } 228 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r79365 r80652 244 244 245 245 /* Prepare 'View' actions connections: */ 246 connect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)),247 this, SLOT(sltChangeVisualStateToNormal()));248 connect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)),249 this, SLOT(sltChangeVisualStateToFullscreen()));250 connect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)),251 this, SLOT(sltChangeVisualStateToScale()));246 connect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), &QAction::triggered, 247 this, &UIMachineLogicSeamless::sltChangeVisualStateToNormal); 248 connect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), &QAction::triggered, 249 this, &UIMachineLogicSeamless::sltChangeVisualStateToFullscreen); 250 connect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), &QAction::triggered, 251 this, &UIMachineLogicSeamless::sltChangeVisualStateToScale); 252 252 } 253 253 … … 273 273 /* Listen for frame-buffer resize: */ 274 274 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 275 connect(pMachineWindow, SIGNAL(sigFrameBufferResize()),276 this, SIGNAL(sigFrameBufferResize()));275 connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize, 276 this, &UIMachineLogicSeamless::sigFrameBufferResize); 277 277 emit sigFrameBufferResize(); 278 278 279 279 /* Connect multi-screen layout change handler: */ 280 connect(m_pScreenLayout, SIGNAL(sigScreenLayoutChange()),281 this, SLOT(sltScreenLayoutChanged()));280 connect(m_pScreenLayout, &UIMultiScreenLayout::sigScreenLayoutChange, 281 this, &UIMachineLogicSeamless::sltScreenLayoutChanged); 282 282 283 283 /* Mark machine-window(s) created: */ … … 343 343 { 344 344 /* "View" actions disconnections: */ 345 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)),346 this, SLOT(sltChangeVisualStateToNormal()));347 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)),348 this, SLOT(sltChangeVisualStateToFullscreen()));349 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)),350 this, SLOT(sltChangeVisualStateToScale()));345 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Seamless), &QAction::triggered, 346 this, &UIMachineLogicSeamless::sltChangeVisualStateToNormal); 347 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), &QAction::triggered, 348 this, &UIMachineLogicSeamless::sltChangeVisualStateToFullscreen); 349 disconnect(actionPool()->action(UIActionIndexRT_M_View_T_Scale), &QAction::triggered, 350 this, &UIMachineLogicSeamless::sltChangeVisualStateToScale); 351 351 352 352 /* Call to base-class: */ … … 377 377 UIMachineLogic::cleanupActionGroups(); 378 378 } 379 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r76606 r80652 129 129 130 130 /* Guest additions state-change updater: */ 131 connect(uisession(), SIGNAL(sigAdditionsStateActualChange()), this, SLOT(sltAdditionsStateChanged()));131 connect(uisession(), &UISession::sigAdditionsStateActualChange, this, &UIMachineViewSeamless::sltAdditionsStateChanged); 132 132 } 133 133 … … 219 219 return workingArea().size(); 220 220 } 221 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r79365 r80652 139 139 /* Configure mini-toolbar: */ 140 140 m_pMiniToolBar->addMenus(actionPool()->menus()); 141 connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()),142 this, SLOT(sltShowMinimized()), Qt::QueuedConnection);143 connect(m_pMiniToolBar, SIGNAL(sigExitAction()),144 actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SLOT(trigger()));145 connect(m_pMiniToolBar, SIGNAL(sigCloseAction()),146 actionPool()->action(UIActionIndex_M_Application_S_Close), SLOT(trigger()));147 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutWindowActivationStolen()),148 this, SLOT(sltRevokeWindowActivation()), Qt::QueuedConnection);141 connect(m_pMiniToolBar, &UIMiniToolBar::sigMinimizeAction, 142 this, &UIMachineWindowSeamless::sltShowMinimized, Qt::QueuedConnection); 143 connect(m_pMiniToolBar, &UIMiniToolBar::sigExitAction, 144 actionPool()->action(UIActionIndexRT_M_View_T_Seamless), &UIAction::trigger); 145 connect(m_pMiniToolBar, &UIMiniToolBar::sigCloseAction, 146 actionPool()->action(UIActionIndex_M_Application_S_Close), &UIAction::trigger); 147 connect(m_pMiniToolBar, &UIMiniToolBar::sigNotifyAboutWindowActivationStolen, 148 this, &UIMachineWindowSeamless::sltRevokeWindowActivation, Qt::QueuedConnection); 149 149 } 150 150 } … … 402 402 } 403 403 #endif /* VBOX_WITH_MASKED_SEAMLESS */ 404
Note:
See TracChangeset
for help on using the changeset viewer.