| 463 | } |
| 464 | |
| 465 | void 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 | |
| 491 | void UBApplicationController::checkUpdate(const QUrl& url) |
no test coverage detected