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:
parent
881ed0a2cb
commit
d607cb046e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue