Changeset View
Changeset View
Standalone View
Standalone View
kig/main.cpp
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 68 | { | |||
---|---|---|---|---|---|
77 | 77 | | |||
78 | macros.copy( typesDir.absoluteFilePath( QStringLiteral("macros.kigt") ) ); | 78 | macros.copy( typesDir.absoluteFilePath( QStringLiteral("macros.kigt") ) ); | ||
79 | } | 79 | } | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | int main( int argc, char **argv ) | 82 | int main( int argc, char **argv ) | ||
83 | { | 83 | { | ||
84 | configMigration(); | 84 | configMigration(); | ||
85 | // Fixes blurry icons with Fractional scaling | ||||
86 | QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); | ||||
85 | QApplication app( argc, argv ); | 87 | QApplication app( argc, argv ); | ||
86 | KLocalizedString::setApplicationDomain( "kig" ); | 88 | KLocalizedString::setApplicationDomain( "kig" ); | ||
87 | KAboutData about = kigAboutData( "kig", I18N_NOOP( "Kig" ) ); | 89 | KAboutData about = kigAboutData( "kig", I18N_NOOP( "Kig" ) ); | ||
88 | KCrash::initialize(); | 90 | KCrash::initialize(); | ||
89 | QCommandLineParser parser; | 91 | QCommandLineParser parser; | ||
90 | QCommandLineOption convertToNativeOption( QStringList() << QStringLiteral("c") << QStringLiteral("convert-to-native"), i18n( "Do not show a GUI. Convert the specified file to the native Kig format. Output goes to stdout unless --outfile is specified." ) ); | 92 | QCommandLineOption convertToNativeOption( QStringList() << QStringLiteral("c") << QStringLiteral("convert-to-native"), i18n( "Do not show a GUI. Convert the specified file to the native Kig format. Output goes to stdout unless --outfile is specified." ) ); | ||
91 | QCommandLineOption outfileOption( QStringList() << QStringLiteral("o") << QStringLiteral("outfile"), i18n( "File to output the created native file to. '-' means output to stdout. Default is stdout as well." ), QStringLiteral("file") ); | 93 | QCommandLineOption outfileOption( QStringList() << QStringLiteral("o") << QStringLiteral("outfile"), i18n( "File to output the created native file to. '-' means output to stdout. Default is stdout as well." ), QStringLiteral("file") ); | ||
92 | 94 | | |||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |