Changeset View
Changeset View
Standalone View
Standalone View
src/main.cpp
Show All 36 Lines | |||||
37 | 37 | | |||
38 | static const char description[] = | 38 | static const char description[] = | ||
39 | I18N_NOOP("KDE Frontend to mathematical applications"); | 39 | I18N_NOOP("KDE Frontend to mathematical applications"); | ||
40 | 40 | | |||
41 | int main(int argc, char **argv) | 41 | int main(int argc, char **argv) | ||
42 | { | 42 | { | ||
43 | QApplication app(argc, argv); | 43 | QApplication app(argc, argv); | ||
44 | 44 | | |||
45 | // Fixes blurry icons with fractional scaling, see https://phabricator.kde.org/D29417 | ||||
asemke: having it here is ok. | |||||
I think, better replace this TODO comment via comment about problem, which this flag solve and url to this revision, IMHO. sirgienko: I think, better replace this TODO comment via comment about problem, which this flag solve and… | |||||
46 | QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); | ||||
47 | | ||||
45 | // Add our custom plugins path, where we install our plugins, if it isn't default path | 48 | // Add our custom plugins path, where we install our plugins, if it isn't default path | ||
46 | const QString& path = Settings::pathToCantorPluginsDir().toLocalFile(); | 49 | const QString& path = Settings::pathToCantorPluginsDir().toLocalFile(); | ||
47 | qDebug() << "Adding additional application library path" << path; | 50 | qDebug() << "Adding additional application library path" << path; | ||
48 | if (!QCoreApplication::libraryPaths().contains(path)) | 51 | if (!QCoreApplication::libraryPaths().contains(path)) | ||
49 | QCoreApplication::addLibraryPath(path); | 52 | QCoreApplication::addLibraryPath(path); | ||
50 | 53 | | |||
51 | KCrash::initialize(); | 54 | KCrash::initialize(); | ||
52 | 55 | | |||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |
having it here is ok.