Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
Kompare
Commits
d4414005
Commit
d4414005
authored
Nov 13, 2020
by
Friedrich W. H. Kossebau
Browse files
Set Qt::AA_UseHighDpiPixmaps before app instance creation
NO_CHANGELOG
parent
d5e62679
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.cpp
View file @
d4414005
...
...
@@ -50,6 +50,8 @@
*/
int
main
(
int
argc
,
char
*
argv
[])
{
QApplication
::
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
true
);
QApplication
app
(
argc
,
argv
);
KLocalizedString
::
setApplicationDomain
(
"kompare"
);
...
...
@@ -69,8 +71,6 @@ int main(int argc, char* argv[])
KAboutData
::
setApplicationData
(
aboutData
);
app
.
setWindowIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"kompare"
),
app
.
windowIcon
()));
app
.
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
true
);
QCommandLineParser
parser
;
aboutData
.
setupCommandLine
(
&
parser
);
parser
.
addOption
(
QCommandLineOption
(
QStringLiteral
(
"c"
),
i18n
(
"This will compare URL1 with URL2"
)));
...
...
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