Changeset View
Changeset View
Standalone View
Standalone View
kstars/main.cpp
Show All 14 Lines | |||||
15 | * * | 15 | * * | ||
16 | ***************************************************************************/ | 16 | ***************************************************************************/ | ||
17 | 17 | | |||
18 | #include <QDebug> | 18 | #include <QDebug> | ||
19 | #include <QPixmap> | 19 | #include <QPixmap> | ||
20 | 20 | | |||
21 | #include <QApplication> | 21 | #include <QApplication> | ||
22 | #include <QScreen> | 22 | #include <QScreen> | ||
23 | #include <QtGlobal> | ||||
23 | 24 | | |||
24 | #ifdef KSTARS_LITE | 25 | #ifdef KSTARS_LITE | ||
25 | #include "kstarslite.h" | 26 | #include "kstarslite.h" | ||
26 | #include <KLocalizedString> | 27 | #include <KLocalizedString> | ||
27 | #else | 28 | #else | ||
28 | #include <QCommandLineParser> | 29 | #include <QCommandLineParser> | ||
29 | #include <QCommandLineOption> | 30 | #include <QCommandLineOption> | ||
30 | 31 | | |||
Show All 19 Lines | |||||
50 | #include "kstars_debug.h" | 51 | #include "kstars_debug.h" | ||
51 | 52 | | |||
52 | #ifndef KSTARS_LITE | 53 | #ifndef KSTARS_LITE | ||
53 | static const char description[] = I18N_NOOP("Desktop Planetarium"); | 54 | static const char description[] = I18N_NOOP("Desktop Planetarium"); | ||
54 | static const char notice[] = I18N_NOOP("Some images in KStars are for non-commercial use only. See README.images."); | 55 | static const char notice[] = I18N_NOOP("Some images in KStars are for non-commercial use only. See README.images."); | ||
55 | #endif | 56 | #endif | ||
56 | 57 | | |||
57 | 58 | | |||
58 | int main(int argc, char *argv[]) | | |||
59 | #if defined(Q_OS_ANDROID) | 59 | #if defined(Q_OS_ANDROID) | ||
60 | // __attribute__ is needed because clang-based linking removes the main() symbol from the shared library on Android | 60 | // __attribute__ is needed because clang-based linking removes the main() symbol from the shared library on Android | ||
61 | __attribute__ ((visibility ("default"))) | 61 | Q_DECL_EXPORT | ||
62 | #endif | 62 | #endif | ||
63 | int main(int argc, char *argv[]) | ||||
63 | { | 64 | { | ||
64 | #ifdef KSTARS_LITE | 65 | #ifdef KSTARS_LITE | ||
65 | QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); | 66 | QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); | ||
66 | #endif | 67 | #endif | ||
67 | QApplication app(argc, argv); | 68 | QApplication app(argc, argv); | ||
68 | 69 | | |||
69 | #ifdef Q_OS_OSX | 70 | #ifdef Q_OS_OSX | ||
70 | //Note, this function will return true on OS X if the data directories are good to go. If not, quit with error code 1! | 71 | //Note, this function will return true on OS X if the data directories are good to go. If not, quit with error code 1! | ||
▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines |