forked from qt-creator/qt-creator
QmlDesigner: Add option forceFreeType to qmlproject
This option enforces the usage of FreeType even on Windows for the form editor and live preview. This can be useful when developing for Linux devices. The option can be eanbled by adding 'forceFreeType: true' to the .qmlproject file. Task-number: QDS-1143 Change-Id: I7e749e95584e23202536596ee4f7cdaa09d3a371 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -394,6 +394,11 @@ QString QmlProjectRunConfiguration::commandLineArguments() const
|
||||
Utils::QtcProcess::addArg(&args, fileSelector, osType);
|
||||
}
|
||||
|
||||
if (Utils::HostOsInfo::isWindowsHost() && project->forceFreeType()) {
|
||||
Utils::QtcProcess::addArg(&args, "-platform", osType);
|
||||
Utils::QtcProcess::addArg(&args, "windows:fontengine=freetype", osType);
|
||||
}
|
||||
|
||||
const QString main = project->targetFile(Utils::FilePath::fromString(mainScript()),
|
||||
currentTarget).toString();
|
||||
if (!main.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user