| 392 | |
| 393 | |
| 394 | void UBApplicationController::showInternet() |
| 395 | { |
| 396 | |
| 397 | if (UBApplication::boardController) |
| 398 | { |
| 399 | UBApplication::boardController->persistCurrentScene(); |
| 400 | UBApplication::boardController->hide(); |
| 401 | } |
| 402 | |
| 403 | if (UBSettings::settings()->webUseExternalBrowser->get().toBool()) |
| 404 | { |
| 405 | showDesktop(true); |
| 406 | UBApplication::webController->show(); |
| 407 | } |
| 408 | else |
| 409 | { |
| 410 | mMainWindow->boardToolBar->hide(); |
| 411 | mMainWindow->documentToolBar->hide(); |
| 412 | mMainWindow->webToolBar->show(); |
| 413 | |
| 414 | mMainMode = Internet; |
| 415 | |
| 416 | adaptToolBar(); |
| 417 | |
| 418 | mMainWindow->show(); |
| 419 | mUninoteController->hideWindow(); |
| 420 | |
| 421 | UBApplication::webController->show(); |
| 422 | |
| 423 | UBApplication::displayManager->adjustScreens(); |
| 424 | |
| 425 | emit mainModeChanged(Internet); |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | |
| 430 | void UBApplicationController::showDocument() |
nothing calls this directly
no test coverage detected