Apply default QQC2 style also when quick-gui arg not present

So it works also under Android (where the usual argument parsing
might not be applied).
This commit is contained in:
Martchus 2018-09-18 21:48:16 +02:00
parent 881ed0a2cb
commit d607cb046e
1 changed files with 1 additions and 4 deletions

View File

@ -82,10 +82,7 @@ inline bool QtConfigArguments::areQtGuiArgsPresent() const
*/
inline void QtConfigArguments::applySettingsForQuickGui() const
{
if (!m_qtQuickGuiArg.isPresent()) {
return;
}
if (m_styleArg.isPresent()) {
if (!m_qtQuickGuiArg.isPresent() && m_styleArg.isPresent()) {
QQuickStyle::setStyle(QString::fromLocal8Bit(m_styleArg.values().front()));
}
#ifdef QT_UTILITIES_DEFAULT_QQC2_STYLE