Commit d1e16dd3 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Enable highdpi scaling and pixmaps

parent 5d9a78e9
Pipeline #158482 passed with stage
in 1 minute and 13 seconds
......@@ -33,6 +33,9 @@ int main( int argc, char *argv[] )
migrate.migrate();
KLocalizedString::setApplicationDomain("kiten");
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication app(argc, argv);
KAboutData aboutData( QStringLiteral("kiten"), i18n("Kiten"), QStringLiteral(KITEN_VERSION_STRING), i18n("Japanese Reference Tool"),
......@@ -52,7 +55,6 @@ int main( int argc, char *argv[] )
aboutData.addAuthor( i18n("Daniel E. Moctezuma"), i18n("Deinflection system improvements, Dictionary updates for EDICT and KANJIDIC, GUI Improvements, Kanji Browser, Bug fixes, Code polishing and simplification"), QStringLiteral("democtezuma@gmail.com") );
aboutData.setOrganizationDomain( "kde.org" ); //Set this for the DBUS ID
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#ifdef Q_OS_WIN
QApplication::setStyle(QStringLiteral("breeze"));
......
......@@ -21,6 +21,9 @@ int main( int argc, char **argv )
migrate.setUiFiles(QStringList() << QStringLiteral("kanjibrowserui.rc"));
migrate.migrate();
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication app(argc, argv);
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kiten"), app.windowIcon()));
KLocalizedString::setApplicationDomain("kiten");
......
......@@ -18,6 +18,9 @@ static const char version[] = "0.1";
int main( int argc, char **argv )
{
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication app(argc, argv);
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kiten"), app.windowIcon()));
KLocalizedString::setApplicationDomain("kiten");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment