|
|
@ -148,11 +148,13 @@ void UBDisplayManager::setDisplayWidget(QWidget* pDisplayWidget) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (mDisplayWidget) |
|
|
|
if (mDisplayWidget) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
mDisplayWidget->hide(); |
|
|
|
pDisplayWidget->setGeometry(mDisplayWidget->geometry()); |
|
|
|
pDisplayWidget->setGeometry(mDisplayWidget->geometry()); |
|
|
|
pDisplayWidget->setWindowFlags(mDisplayWidget->windowFlags()); |
|
|
|
pDisplayWidget->setWindowFlags(mDisplayWidget->windowFlags()); |
|
|
|
} |
|
|
|
} |
|
|
|
mDisplayWidget = pDisplayWidget; |
|
|
|
mDisplayWidget = pDisplayWidget; |
|
|
|
mDisplayWidget->setGeometry(mDesktop->screenGeometry(mDisplayScreenIndex)); |
|
|
|
mDisplayWidget->setGeometry(mDesktop->screenGeometry(mDisplayScreenIndex)); |
|
|
|
|
|
|
|
if (UBSettings::settings()->appUseMultiscreen->get().toBool()) |
|
|
|
mDisplayWidget->showFullScreen(); |
|
|
|
mDisplayWidget->showFullScreen(); |
|
|
|
// !!!! Should be included into Windows after QT recompilation
|
|
|
|
// !!!! Should be included into Windows after QT recompilation
|
|
|
|
#ifdef Q_WS_MAC |
|
|
|
#ifdef Q_WS_MAC |
|
|
|