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
1b4cca3a
Commit
1b4cca3a
authored
9 years ago
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated connect functions
parent
2484e96b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
UBDisplayManager.cpp
src/core/UBDisplayManager.cpp
+4
-2
UBDisplayManager.h
src/core/UBDisplayManager.h
+1
-0
UBPreferencesController.cpp
src/core/UBPreferencesController.cpp
+3
-1
No files found.
src/core/UBDisplayManager.cpp
View file @
1b4cca3a
...
...
@@ -41,6 +41,8 @@
#include "core/memcheck.h"
#include "qdesktopwidget.h"
UBDisplayManager
::
UBDisplayManager
(
QObject
*
parent
)
:
QObject
(
parent
)
,
mControlScreenIndex
(
-
1
)
...
...
@@ -55,8 +57,8 @@ UBDisplayManager::UBDisplayManager(QObject *parent)
initScreenIndexes
();
connect
(
mDesktop
,
SIGNAL
(
resized
(
int
)),
this
,
SLOT
(
adjustScreens
(
int
))
);
connect
(
mDesktop
,
SIGNAL
(
workAreaResized
(
int
)),
this
,
SLOT
(
adjustScreens
(
int
))
);
connect
(
mDesktop
,
&
QDesktopWidget
::
resized
,
this
,
&
UBDisplayManager
::
adjustScreens
);
connect
(
mDesktop
,
&
QDesktopWidget
::
workAreaResized
,
this
,
&
UBDisplayManager
::
adjustScreens
);
}
...
...
This diff is collapsed.
Click to expand it.
src/core/UBDisplayManager.h
View file @
1b4cca3a
...
...
@@ -32,6 +32,7 @@
class
UBBlackoutWidget
;
class
UBBoardView
;
class
QDesktopWidget
;
class
UBDisplayManager
:
public
QObject
{
...
...
This diff is collapsed.
Click to expand it.
src/core/UBPreferencesController.cpp
View file @
1b4cca3a
...
...
@@ -44,6 +44,8 @@
#include "core/memcheck.h"
#include "qdesktopwidget.h"
qreal
UBPreferencesController
::
sSliderRatio
=
10.0
;
qreal
UBPreferencesController
::
sMinPenWidth
=
0.5
;
qreal
UBPreferencesController
::
sMaxPenWidth
=
50.0
;
...
...
@@ -78,7 +80,7 @@ UBPreferencesController::UBPreferencesController(QWidget *parent)
mPreferencesUI
=
new
Ui
::
preferencesDialog
();
// deleted in
mPreferencesUI
->
setupUi
(
mPreferencesWindow
);
adjustScreens
(
1
);
connect
(
mDesktop
,
SIGNAL
(
screenCountChanged
(
int
)),
this
,
SLOT
(
adjustScreens
(
int
))
);
connect
(
mDesktop
,
&
QDesktopWidget
::
screenCountChanged
,
this
,
&
UBPreferencesController
::
adjustScreens
);
wire
();
}
...
...
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