summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Fedoskin <afedoskin3@gmail.com>2016-09-29 07:09:17 (GMT)
committerArtem Fedoskin <afedoskin3@gmail.com>2016-09-29 07:09:17 (GMT)
commit531ec87a003e8a2c8c470696061c0ff4abc11502 (patch)
treef62975ac2dccca00b1489022b480d701a616ac18
parent14dc85d8322cc46bcb0d4b54f1f797935b54757e (diff)
Fixing http://indilib.org/forum/general/1549-qt-error-when-building-kstars-from-source.html. Made Qt::AA_EnableHighDpiScaling used only in KStars Lite
-rw-r--r--kstars/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kstars/main.cpp b/kstars/main.cpp
index 08b32b3..5a3c236 100644
--- a/kstars/main.cpp
+++ b/kstars/main.cpp
@@ -57,7 +57,9 @@ static const char notice[] =
int main(int argc, char *argv[])
{
+#ifdef KSTARS_LITE
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
QApplication app(argc, argv);
app.setApplicationVersion(KSTARS_VERSION);
/**
@@ -259,8 +261,6 @@ int main(int argc, char *argv[])
}
QObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
#else
- //KStarsLite::createInstance( true, ! parser.isSet( "paused" ), datestring );
- //TODO decide whether KStars Lite should have command line parser
KStarsLite::createInstance( true );
#endif
return app.exec();