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
KColorChooser
Commits
c4ef8f8a
Commit
c4ef8f8a
authored
Jan 24, 2021
by
Ahmad Samir
Browse files
Enable high DPI support
Code copied from kate repo.
parent
78e213e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcolorchooser.cpp
View file @
c4ef8f8a
...
...
@@ -44,6 +44,8 @@ static const char description[] =
int
main
(
int
argc
,
char
*
argv
[])
{
QCoreApplication
::
setAttribute
(
Qt
::
AA_EnableHighDpiScaling
,
true
);
QCoreApplication
::
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
true
);
QApplication
app
(
argc
,
argv
);
KLocalizedString
::
setApplicationDomain
(
"kcolorchooser"
);
KAboutData
aboutData
(
QStringLiteral
(
"kcolorchooser"
),
i18n
(
"KColorChooser"
),
...
...
@@ -54,7 +56,6 @@ int main(int argc, char *argv[])
aboutData
.
setTranslator
(
i18nc
(
"NAME OF TRANSLATORS"
,
"Your names"
),
i18nc
(
"EMAIL OF TRANSLATORS"
,
"Your emails"
));
KAboutData
::
setApplicationData
(
aboutData
);
QCommandLineParser
parser
;
parser
.
setSingleDashWordOptionMode
(
QCommandLineParser
::
ParseAsLongOptions
);
aboutData
.
setupCommandLine
(
&
parser
);
...
...
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