Unverified Commit 7fcf4ca5 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8678 from patrickelectric/fix_style

Fix Qt environment style in linux systems
parents f4c967df 75fb7106
......@@ -250,6 +250,7 @@ QT += \
positioning \
qml \
quick \
quickcontrols2 \
quickwidgets \
sql \
svg \
......
......@@ -28,6 +28,7 @@
#include <QFontDatabase>
#include <QQuickWindow>
#include <QQuickImageProvider>
#include <QQuickStyle>
#ifdef QGC_ENABLE_BLUETOOTH
#include <QBluetoothLocalDevice>
......@@ -219,6 +220,11 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
}
permFile.close();
}
// Set default QtQuick style if not configured
if (QString(getenv("QT_QUICK_CONTROLS_STYLE")).isEmpty()) {
QQuickStyle::setStyle("Universal");
}
}
#endif
#endif
......
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