MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / showDesktop

Method showDesktop

src/core/UBApplicationController.cpp:465–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465void UBApplicationController::showDesktop(bool dontSwitchFrontProcess)
466{
467 if (UBApplication::boardController)
468 UBApplication::boardController->hide();
469
470 mMainWindow->hide();
471 mUninoteController->showWindow();
472
473 if (mMirror)
474 {
475 // grab from screen instead of widget
476 mMirror->setSourceWidget(nullptr);
477 }
478
479 mIsShowingDesktop = true;
480 emit desktopMode(true);
481
482 if (!dontSwitchFrontProcess) {
483 UBPlatformUtils::bringPreviousProcessToFront();
484 }
485
486 UBDrawingController::drawingController()->setInDesktopMode(true);
487 UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector);
488}
489
490
491void UBApplicationController::checkUpdate(const QUrl& url)

Callers 1

execMethod · 0.80

Calls 5

showWindowMethod · 0.80
setInDesktopModeMethod · 0.80
setStylusToolMethod · 0.80
hideMethod · 0.45
setSourceWidgetMethod · 0.45

Tested by

no test coverage detected