Skip to content
Snippets Groups Projects
Commit dd3a3009 authored by Eike Ziller's avatar Eike Ziller
Browse files

Use QQuickWidget in welcome mode when compiling with Qt 5.5 or later.


Several bugs were fixed in QQuickWidget, making it viable to use it by
default with Qt 5.5.

Change-Id: If31d2cfabf80d01b1588269a1fde96742621e995
Task-number: QTCREATORBUG-13440
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 5ba30d92
No related branches found
No related tags found
No related merge requests found
QT += quick QT += quick
!isEmpty(USE_QUICK_WIDGET) {
QT += quickwidgets
DEFINES += USE_QUICK_WIDGET
}
QML_IMPORT_PATH=../../../share/qtcreator/welcomescreen QML_IMPORT_PATH=../../../share/qtcreator/welcomescreen
include(../../qtcreatorplugin.pri) include(../../qtcreatorplugin.pri)
!isEmpty(USE_QUICK_WIDGET)|minQtVersion(5, 5, 0) {
QT += quickwidgets
DEFINES += USE_QUICK_WIDGET
}
HEADERS += welcomeplugin.h HEADERS += welcomeplugin.h
SOURCES += welcomeplugin.cpp SOURCES += welcomeplugin.cpp
......
...@@ -215,7 +215,7 @@ void WelcomeMode::facilitateQml(QQmlEngine *engine) ...@@ -215,7 +215,7 @@ void WelcomeMode::facilitateQml(QQmlEngine *engine)
ctx->setContextProperty(QLatin1String("creatorTheme"), &m_themeProperties); ctx->setContextProperty(QLatin1String("creatorTheme"), &m_themeProperties);
#if defined(USE_QUICK_WIDGET) #if defined(USE_QUICK_WIDGET) && (QT_VERSION < QT_VERSION_CHECK(5, 5, 0))
bool useNativeText = !HostOsInfo::isMacHost(); bool useNativeText = !HostOsInfo::isMacHost();
#else #else
bool useNativeText = true; bool useNativeText = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment