diff --git a/src/core/UBApplicationController.cpp b/src/core/UBApplicationController.cpp index d54e8610..0ee793e1 100644 --- a/src/core/UBApplicationController.cpp +++ b/src/core/UBApplicationController.cpp @@ -137,13 +137,13 @@ void UBApplicationController::initViewState(int horizontalPosition, int vertical void UBApplicationController::initScreenLayout(bool useMultiscreen) { - mDisplayManager->setAsControl(mMainWindow); - mDisplayManager->setAsDisplay(mDisplayView); + mDisplayManager->setControlWidget(mMainWindow); + mDisplayManager->setDisplayWidget(mDisplayView); - mDisplayManager->setAsPreviousDisplays(mPreviousViews); - mDisplayManager->setAsDesktop(mUninoteController->drawingView()); + mDisplayManager->setPreviousDisplaysWidgets(mPreviousViews); + mDisplayManager->setDesktopWidget(mUninoteController->drawingView()); - mDisplayManager->setUseMultiScreen(bMultiScreen); + mDisplayManager->setUseMultiScreen(useMultiscreen); mDisplayManager->adjustScreens(-1); } @@ -637,12 +637,12 @@ void UBApplicationController::mirroringEnabled(bool enabled) if (enabled) { mMirror->start(); - mDisplayManager->setAsDisplay(mMirror); + mDisplayManager->setDisplayWidget(mMirror); } else { - mDisplayManager->setAsDisplay(mDisplayView); + mDisplayManager->setDisplayWidget(mDisplayView); mMirror->stop(); } @@ -652,7 +652,7 @@ void UBApplicationController::mirroringEnabled(bool enabled) } else { - mDisplayManager->setAsDisplay(mDisplayView); + mDisplayManager->setDisplayWidget(mDisplayView); } } diff --git a/src/core/UBDisplayManager.cpp b/src/core/UBDisplayManager.cpp index b22746df..1d441adb 100644 --- a/src/core/UBDisplayManager.cpp +++ b/src/core/UBDisplayManager.cpp @@ -118,7 +118,7 @@ int UBDisplayManager::numPreviousViews() } -void UBDisplayManager::setAsControl(QWidget* pControlWidget, bool init) +void UBDisplayManager::setControlWidget(QWidget* pControlWidget) { if(hasControl() && pControlWidget && (pControlWidget != mControlWidget)) { @@ -130,7 +130,7 @@ void UBDisplayManager::setAsControl(QWidget* pControlWidget, bool init) } } -void UBDisplayManager::setAsDesktop(QWidget* pControlWidget ) +void UBDisplayManager::setDesktopWidget(QWidget* pControlWidget ) { if(pControlWidget && (pControlWidget != mControlWidget)) { @@ -142,7 +142,7 @@ void UBDisplayManager::setAsDesktop(QWidget* pControlWidget ) } } -void UBDisplayManager::setAsDisplay(QWidget* pDisplayWidget) +void UBDisplayManager::setDisplayWidget(QWidget* pDisplayWidget) { if(pDisplayWidget && (pDisplayWidget != mDisplayWidget)) { @@ -155,7 +155,7 @@ void UBDisplayManager::setAsDisplay(QWidget* pDisplayWidget) } -void UBDisplayManager::setAsPreviousDisplays(QList pPreviousViews) +void UBDisplayManager::setPreviousDisplaysWidgets(QList pPreviousViews) { mPreviousDisplayWidgets = pPreviousViews; } @@ -171,7 +171,7 @@ QRect UBDisplayManager::displayGeometry() return mDesktop->screenGeometry(mDisplayScreenIndex); } -void UBDisplayManager::swapScreens(bool swap) +void UBDisplayManager::reinitScreens(bool swap) { Q_UNUSED(swap); adjustScreens(-1);