Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-windows
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-windows
Commits
f1df745f
Commit
f1df745f
authored
6 years ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
ui: call setprocessdpiaware before the main eventloop
Change-Id: If327bcd729060c7f16fa6efad1d3f31337344899
parent
59ba48a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.cpp
+6
-2
6 additions, 2 deletions
main.cpp
with
6 additions
and
2 deletions
main.cpp
+
6
−
2
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
)));
...
...
This diff is collapsed.
Click to expand it.
Andreas Traczyk
@atraczyk
mentioned in commit
1ccb8fad
·
6 years ago
mentioned in commit
1ccb8fad
mentioned in commit 1ccb8fad0bb03f07ab998176af42d85621aadd8d
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment