forked from qt-creator/qt-creator
QML Project Manager: fix host detection
Assuming that a kit that has deploy steps is not meant for running on the host is not always correct. When working with Qt for MCU for live previews there is an essentially ordinary desktop kit with a QML exporter set to run as a deploy step. We used to wrongly treat this as a remote setup, selecting the standard QML runtime instead of QML puppet. It caused caused fonts to be rendered incorrectly in Live Preview. Amends:8e0e097f55
Fixes: QDS-14901 Change-Id: Iace1943bf888274fc47680a2bd8b1d787f665620 Reviewed-by: hjk <hjk@qt.io> (cherry picked from commitba2d4aaa52
) Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
b3799c96d1
commit
3e6bfa242e
@@ -210,18 +210,13 @@ FilePath QmlProjectRunConfiguration::qmlRuntimeFilePath() const
|
||||
if (!qmlRuntime.isEmpty())
|
||||
return qmlRuntime;
|
||||
}
|
||||
auto hasDeployStep = [this] {
|
||||
return target()->activeDeployConfiguration() &&
|
||||
!target()->activeDeployConfiguration()->stepList()->isEmpty();
|
||||
};
|
||||
|
||||
// The Qt version might know, but we need to make sure
|
||||
// that the device can reach it.
|
||||
if (QtVersion *version = QtKitAspect::qtVersion(kit)) {
|
||||
// look for QML Puppet as qmlruntime only in QtStudio Qt versions
|
||||
if (version->features().contains("QtStudio") &&
|
||||
version->qtVersion().majorVersion() > 5 && !hasDeployStep()) {
|
||||
|
||||
if (version->features().contains("QtStudio") && version->qtVersion().majorVersion() > 5
|
||||
&& dev->rootPath().isLocal()) {
|
||||
auto [workingDirectoryPath, puppetPath] = QmlDesigner::QmlPuppetPaths::qmlPuppetPaths(
|
||||
target(), QmlDesigner::QmlDesignerBasePlugin::settings());
|
||||
if (!puppetPath.isEmpty()) {
|
||||
|
Reference in New Issue
Block a user