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
Graphics
KRuler
Commits
89ba670a
Verified
Commit
89ba670a
authored
Sep 29, 2021
by
ivan tkachenko
Browse files
Improve main(): Set attributes before app object construction
And omit value argument, which is true by default anyway.
parent
97633ef1
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.cpp
View file @
89ba670a
...
...
@@ -18,8 +18,8 @@
int
main
(
int
argc
,
char
*
argv
[])
{
QCoreApplication
::
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
);
QApplication
a
(
argc
,
argv
);
a
.
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
true
);
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"kruler"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"krulerrc"
)
<<
QStringLiteral
(
"kruler.notifyrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"krulerui.rc"
));
...
...
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