Hotfix. Fixed merge errors.

preferencesAboutTextFull
Aleksei Kanash 13 years ago
parent 56e49c1f52
commit 468145e2ae
  1. 16
      src/core/UBApplicationController.cpp
  2. 10
      src/core/UBDisplayManager.cpp

@ -137,13 +137,13 @@ void UBApplicationController::initViewState(int horizontalPosition, int vertical
void UBApplicationController::initScreenLayout(bool useMultiscreen) void UBApplicationController::initScreenLayout(bool useMultiscreen)
{ {
mDisplayManager->setAsControl(mMainWindow); mDisplayManager->setControlWidget(mMainWindow);
mDisplayManager->setAsDisplay(mDisplayView); mDisplayManager->setDisplayWidget(mDisplayView);
mDisplayManager->setAsPreviousDisplays(mPreviousViews); mDisplayManager->setPreviousDisplaysWidgets(mPreviousViews);
mDisplayManager->setAsDesktop(mUninoteController->drawingView()); mDisplayManager->setDesktopWidget(mUninoteController->drawingView());
mDisplayManager->setUseMultiScreen(bMultiScreen); mDisplayManager->setUseMultiScreen(useMultiscreen);
mDisplayManager->adjustScreens(-1); mDisplayManager->adjustScreens(-1);
} }
@ -637,12 +637,12 @@ void UBApplicationController::mirroringEnabled(bool enabled)
if (enabled) if (enabled)
{ {
mMirror->start(); mMirror->start();
mDisplayManager->setAsDisplay(mMirror); mDisplayManager->setDisplayWidget(mMirror);
} }
else else
{ {
mDisplayManager->setAsDisplay(mDisplayView); mDisplayManager->setDisplayWidget(mDisplayView);
mMirror->stop(); mMirror->stop();
} }
@ -652,7 +652,7 @@ void UBApplicationController::mirroringEnabled(bool enabled)
} }
else else
{ {
mDisplayManager->setAsDisplay(mDisplayView); mDisplayManager->setDisplayWidget(mDisplayView);
} }
} }

@ -118,7 +118,7 @@ int UBDisplayManager::numPreviousViews()
} }
void UBDisplayManager::setAsControl(QWidget* pControlWidget, bool init) void UBDisplayManager::setControlWidget(QWidget* pControlWidget)
{ {
if(hasControl() && pControlWidget && (pControlWidget != mControlWidget)) 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)) 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)) if(pDisplayWidget && (pDisplayWidget != mDisplayWidget))
{ {
@ -155,7 +155,7 @@ void UBDisplayManager::setAsDisplay(QWidget* pDisplayWidget)
} }
void UBDisplayManager::setAsPreviousDisplays(QList<UBBoardView*> pPreviousViews) void UBDisplayManager::setPreviousDisplaysWidgets(QList<UBBoardView*> pPreviousViews)
{ {
mPreviousDisplayWidgets = pPreviousViews; mPreviousDisplayWidgets = pPreviousViews;
} }
@ -171,7 +171,7 @@ QRect UBDisplayManager::displayGeometry()
return mDesktop->screenGeometry(mDisplayScreenIndex); return mDesktop->screenGeometry(mDisplayScreenIndex);
} }
void UBDisplayManager::swapScreens(bool swap) void UBDisplayManager::reinitScreens(bool swap)
{ {
Q_UNUSED(swap); Q_UNUSED(swap);
adjustScreens(-1); adjustScreens(-1);

Loading…
Cancel
Save