|
|
|
@ -132,14 +132,15 @@ void UBApplicationController::initViewState(int horizontalPosition, int vertical |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UBApplicationController::initScreenLayout() |
|
|
|
|
void UBApplicationController::initScreenLayout(bool useMultiscreen) |
|
|
|
|
{ |
|
|
|
|
mDisplayManager->setAsControl(mMainWindow, true); |
|
|
|
|
mDisplayManager->setAsControl(mMainWindow); |
|
|
|
|
mDisplayManager->setAsDisplay(mDisplayView); |
|
|
|
|
|
|
|
|
|
mDisplayManager->setAsPreviousDisplays(mPreviousViews); |
|
|
|
|
mDisplayManager->setAsDesktop(mUninoteController->drawingView()); |
|
|
|
|
|
|
|
|
|
mDisplayManager->setUseMultiScreen(bMultiScreen); |
|
|
|
|
mDisplayManager->adjustScreens(-1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -341,7 +342,6 @@ void UBApplicationController::showBoard() |
|
|
|
|
mirroringEnabled(false); |
|
|
|
|
|
|
|
|
|
mMainWindow->switchToBoardWidget(); |
|
|
|
|
mDisplayManager->setAsDisplay(mDisplayView); |
|
|
|
|
|
|
|
|
|
if (UBApplication::boardController) |
|
|
|
|
UBApplication::boardController->show(); |
|
|
|
@ -351,7 +351,7 @@ void UBApplicationController::showBoard() |
|
|
|
|
|
|
|
|
|
mUninoteController->hideWindow(); |
|
|
|
|
|
|
|
|
|
mDisplayManager->adjustScreens(0); |
|
|
|
|
mMainWindow->show(); |
|
|
|
|
|
|
|
|
|
emit mainModeChanged(Board); |
|
|
|
|
|
|
|
|
@ -725,6 +725,7 @@ void UBApplicationController::importFile(const QString& pFilePath) |
|
|
|
|
void UBApplicationController::useMultiScreen(bool use) |
|
|
|
|
{ |
|
|
|
|
mDisplayManager->setUseMultiScreen(use); |
|
|
|
|
mDisplayManager->adjustScreens(0); |
|
|
|
|
UBSettings::settings()->appUseMultiscreen->set(use); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|