|
|
@ -182,7 +182,7 @@ QRect UBDisplayManager::displayGeometry() |
|
|
|
|
|
|
|
|
|
|
|
void UBDisplayManager::swapScreens(bool swap) |
|
|
|
void UBDisplayManager::swapScreens(bool swap) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
Q_UNUSED(swap); |
|
|
|
adjustScreens(-1); |
|
|
|
adjustScreens(-1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -201,6 +201,10 @@ void UBDisplayManager::adjustScreens(int screen) |
|
|
|
void UBDisplayManager::positionScreens() |
|
|
|
void UBDisplayManager::positionScreens() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(mDesktopWidget && mControlScreenIndex > -1) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mDesktopWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex)); |
|
|
|
|
|
|
|
} |
|
|
|
if (mControlWidget && mControlScreenIndex > -1) |
|
|
|
if (mControlWidget && mControlScreenIndex > -1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
mControlWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex)); |
|
|
|
mControlWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex)); |
|
|
@ -212,11 +216,6 @@ void UBDisplayManager::positionScreens() |
|
|
|
mDisplayWidget->setGeometry(mDesktop->screenGeometry(mDisplayScreenIndex)); |
|
|
|
mDisplayWidget->setGeometry(mDesktop->screenGeometry(mDisplayScreenIndex)); |
|
|
|
mDisplayWidget->showFullScreen(); |
|
|
|
mDisplayWidget->showFullScreen(); |
|
|
|
} |
|
|
|
} |
|
|
|
if(mDesktopWidget && mControlScreenIndex > -1) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mDesktopWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex)); |
|
|
|
|
|
|
|
// mDesktopWidget->showFullScreen();
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if(mDisplayWidget) |
|
|
|
else if(mDisplayWidget) |
|
|
|
{ |
|
|
|
{ |
|
|
|
mDisplayWidget->hide(); |
|
|
|
mDisplayWidget->hide(); |
|
|
|