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
334839d2
Commit
334839d2
authored
8 years ago
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Desktop mode: don't display on 2nd screen if multiscreen mode is deactivated
parent
2263c46d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
UBApplicationController.cpp
src/core/UBApplicationController.cpp
+7
-0
UBDisplayManager.cpp
src/core/UBDisplayManager.cpp
+1
-1
No files found.
src/core/UBApplicationController.cpp
View file @
334839d2
...
...
@@ -721,6 +721,13 @@ void UBApplicationController::importFile(const QString& pFilePath)
void
UBApplicationController
::
useMultiScreen
(
bool
use
)
{
if
(
use
&&
!
mMirror
)
mMirror
=
new
UBScreenMirror
();
if
(
!
use
&&
mMirror
)
{
delete
mMirror
;
mMirror
=
NULL
;
}
mDisplayManager
->
setUseMultiScreen
(
use
);
mDisplayManager
->
adjustScreens
(
0
);
UBSettings
::
settings
()
->
appUseMultiscreen
->
set
(
use
);
...
...
This diff is collapsed.
Click to expand it.
src/core/UBDisplayManager.cpp
View file @
334839d2
...
...
@@ -55,7 +55,7 @@ UBDisplayManager::UBDisplayManager(QObject *parent)
{
mDesktop
=
qApp
->
desktop
();
mUseMultiScreen
=
true
;
mUseMultiScreen
=
UBSettings
::
settings
()
->
appUseMultiscreen
->
get
().
toBool
()
;
initScreenIndexes
();
...
...
This diff is collapsed.
Click to expand it.
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