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
f1df745f
Commit
f1df745f
authored
Jan 06, 2019
by
Andreas Traczyk
Browse files
ui: call setprocessdpiaware before the main eventloop
Change-Id: If327bcd729060c7f16fa6efad1d3f31337344899
parent
59ba48a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.cpp
View file @
f1df745f
...
...
@@ -103,7 +103,11 @@ fileDebug(QFile& debugFile)
int
main
(
int
argc
,
char
*
argv
[])
{
QGuiApplication
::
setAttribute
(
Qt
::
AA_EnableHighDpiScaling
);
#ifdef Q_OS_WIN
SetProcessDPIAware
();
#endif // Q_OS_WIN
QApplication
::
setAttribute
(
Qt
::
AA_DisableHighDpiScaling
);
QGuiApplication
::
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
);
char
ARG_DISABLE_WEB_SECURITY
[]
=
"--disable-web-security"
;
...
...
@@ -112,6 +116,7 @@ main(int argc, char *argv[])
for
(
int
i
=
0
;
i
<
argc
;
i
++
)
{
newArgv
[
i
]
=
argv
[
i
];
}
newArgv
[
argc
]
=
ARG_DISABLE_WEB_SECURITY
;
newArgv
[
argc
+
1
]
=
nullptr
;
...
...
@@ -240,7 +245,6 @@ main(int argc, char *argv[])
MainWindow
::
instance
().
hide
();
}
#ifdef URI_PROTOCOL
QObject
::
connect
(
shmClient
,
SIGNAL
(
RingEvent
(
QString
)),
&
MainWindow
::
instance
(),
SLOT
(
onRingEvent
(
QString
)));
...
...
Andreas Traczyk
@atraczyk
mentioned in commit
1ccb8fad
·
Jan 29, 2019
mentioned in commit
1ccb8fad
mentioned in commit 1ccb8fad0bb03f07ab998176af42d85621aadd8d
Toggle commit list
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