|
|
@ -721,6 +721,13 @@ void UBApplicationController::importFile(const QString& pFilePath) |
|
|
|
|
|
|
|
|
|
|
|
void UBApplicationController::useMultiScreen(bool use) |
|
|
|
void UBApplicationController::useMultiScreen(bool use) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (use && !mMirror) |
|
|
|
|
|
|
|
mMirror = new UBScreenMirror(); |
|
|
|
|
|
|
|
if (!use && mMirror) { |
|
|
|
|
|
|
|
delete mMirror; |
|
|
|
|
|
|
|
mMirror = NULL; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
mDisplayManager->setUseMultiScreen(use); |
|
|
|
mDisplayManager->setUseMultiScreen(use); |
|
|
|
mDisplayManager->adjustScreens(0); |
|
|
|
mDisplayManager->adjustScreens(0); |
|
|
|
UBSettings::settings()->appUseMultiscreen->set(use); |
|
|
|
UBSettings::settings()->appUseMultiscreen->set(use); |
|
|
|