Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
468145e2
Commit
468145e2
authored
Apr 03, 2012
by
Aleksei Kanash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hotfix. Fixed merge errors.
parent
56e49c1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
UBApplicationController.cpp
src/core/UBApplicationController.cpp
+8
-8
UBDisplayManager.cpp
src/core/UBDisplayManager.cpp
+5
-5
No files found.
src/core/UBApplicationController.cpp
View file @
468145e2
...
@@ -137,13 +137,13 @@ void UBApplicationController::initViewState(int horizontalPosition, int vertical
...
@@ -137,13 +137,13 @@ void UBApplicationController::initViewState(int horizontalPosition, int vertical
void
UBApplicationController
::
initScreenLayout
(
bool
useMultiscreen
)
void
UBApplicationController
::
initScreenLayout
(
bool
useMultiscreen
)
{
{
mDisplayManager
->
set
AsControl
(
mMainWindow
);
mDisplayManager
->
set
ControlWidget
(
mMainWindow
);
mDisplayManager
->
set
AsDisplay
(
mDisplayView
);
mDisplayManager
->
set
DisplayWidget
(
mDisplayView
);
mDisplayManager
->
set
AsPreviousDisplay
s
(
mPreviousViews
);
mDisplayManager
->
set
PreviousDisplaysWidget
s
(
mPreviousViews
);
mDisplayManager
->
set
AsDesktop
(
mUninoteController
->
drawingView
());
mDisplayManager
->
set
DesktopWidget
(
mUninoteController
->
drawingView
());
mDisplayManager
->
setUseMultiScreen
(
bMultiS
creen
);
mDisplayManager
->
setUseMultiScreen
(
useMultis
creen
);
mDisplayManager
->
adjustScreens
(
-
1
);
mDisplayManager
->
adjustScreens
(
-
1
);
}
}
...
@@ -637,12 +637,12 @@ void UBApplicationController::mirroringEnabled(bool enabled)
...
@@ -637,12 +637,12 @@ void UBApplicationController::mirroringEnabled(bool enabled)
if
(
enabled
)
if
(
enabled
)
{
{
mMirror
->
start
();
mMirror
->
start
();
mDisplayManager
->
set
AsDisplay
(
mMirror
);
mDisplayManager
->
set
DisplayWidget
(
mMirror
);
}
}
else
else
{
{
mDisplayManager
->
set
AsDisplay
(
mDisplayView
);
mDisplayManager
->
set
DisplayWidget
(
mDisplayView
);
mMirror
->
stop
();
mMirror
->
stop
();
}
}
...
@@ -652,7 +652,7 @@ void UBApplicationController::mirroringEnabled(bool enabled)
...
@@ -652,7 +652,7 @@ void UBApplicationController::mirroringEnabled(bool enabled)
}
}
else
else
{
{
mDisplayManager
->
set
AsDisplay
(
mDisplayView
);
mDisplayManager
->
set
DisplayWidget
(
mDisplayView
);
}
}
}
}
...
...
src/core/UBDisplayManager.cpp
View file @
468145e2
...
@@ -118,7 +118,7 @@ int UBDisplayManager::numPreviousViews()
...
@@ -118,7 +118,7 @@ int UBDisplayManager::numPreviousViews()
}
}
void
UBDisplayManager
::
set
AsControl
(
QWidget
*
pControlWidget
,
bool
ini
t
)
void
UBDisplayManager
::
set
ControlWidget
(
QWidget
*
pControlWidge
t
)
{
{
if
(
hasControl
()
&&
pControlWidget
&&
(
pControlWidget
!=
mControlWidget
))
if
(
hasControl
()
&&
pControlWidget
&&
(
pControlWidget
!=
mControlWidget
))
{
{
...
@@ -130,7 +130,7 @@ void UBDisplayManager::setAsControl(QWidget* pControlWidget, bool init)
...
@@ -130,7 +130,7 @@ void UBDisplayManager::setAsControl(QWidget* pControlWidget, bool init)
}
}
}
}
void
UBDisplayManager
::
set
AsDesktop
(
QWidget
*
pControlWidget
)
void
UBDisplayManager
::
set
DesktopWidget
(
QWidget
*
pControlWidget
)
{
{
if
(
pControlWidget
&&
(
pControlWidget
!=
mControlWidget
))
if
(
pControlWidget
&&
(
pControlWidget
!=
mControlWidget
))
{
{
...
@@ -142,7 +142,7 @@ void UBDisplayManager::setAsDesktop(QWidget* pControlWidget )
...
@@ -142,7 +142,7 @@ void UBDisplayManager::setAsDesktop(QWidget* pControlWidget )
}
}
}
}
void
UBDisplayManager
::
set
AsDisplay
(
QWidget
*
pDisplayWidget
)
void
UBDisplayManager
::
set
DisplayWidget
(
QWidget
*
pDisplayWidget
)
{
{
if
(
pDisplayWidget
&&
(
pDisplayWidget
!=
mDisplayWidget
))
if
(
pDisplayWidget
&&
(
pDisplayWidget
!=
mDisplayWidget
))
{
{
...
@@ -155,7 +155,7 @@ void UBDisplayManager::setAsDisplay(QWidget* pDisplayWidget)
...
@@ -155,7 +155,7 @@ void UBDisplayManager::setAsDisplay(QWidget* pDisplayWidget)
}
}
void
UBDisplayManager
::
set
AsPreviousDisplay
s
(
QList
<
UBBoardView
*>
pPreviousViews
)
void
UBDisplayManager
::
set
PreviousDisplaysWidget
s
(
QList
<
UBBoardView
*>
pPreviousViews
)
{
{
mPreviousDisplayWidgets
=
pPreviousViews
;
mPreviousDisplayWidgets
=
pPreviousViews
;
}
}
...
@@ -171,7 +171,7 @@ QRect UBDisplayManager::displayGeometry()
...
@@ -171,7 +171,7 @@ QRect UBDisplayManager::displayGeometry()
return
mDesktop
->
screenGeometry
(
mDisplayScreenIndex
);
return
mDesktop
->
screenGeometry
(
mDisplayScreenIndex
);
}
}
void
UBDisplayManager
::
swap
Screens
(
bool
swap
)
void
UBDisplayManager
::
reinit
Screens
(
bool
swap
)
{
{
Q_UNUSED
(
swap
);
Q_UNUSED
(
swap
);
adjustScreens
(
-
1
);
adjustScreens
(
-
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment