Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-windows
Commits
79d66b84
Commit
79d66b84
authored
Jan 06, 2019
by
Andreas Traczyk
Browse files
mainwindow: set scaling value on show slot
Change-Id: I974bf732eae1701a53af790d55fce0d22eafbb28
parent
45f56c98
Changes
1
Hide whitespace changes
Inline
Side-by-side
mainwindow.cpp
View file @
79d66b84
...
...
@@ -341,7 +341,9 @@ MainWindow::show()
disconnect
(
screenChangedConnection_
);
screenChangedConnection_
=
connect
(
windowHandle
(),
&
QWindow
::
screenChanged
,
this
,
&
MainWindow
::
slotScreenChanged
);
currentScalingRatio_
=
1.0
;
auto
screenNumber
=
qApp
->
desktop
()
->
screenNumber
();
QScreen
*
screen
=
qApp
->
screens
().
at
(
screenNumber
);
currentScalingRatio_
=
screen
->
logicalDotsPerInchX
()
/
96
;
qobject_cast
<
NavWidget
*>
(
ui
->
navStack
->
currentWidget
())
->
updateCustomUI
();
}
...
...
Write
Preview
Supports
Markdown
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