forked from qt-creator/qt-creator
QmlDesigner: Update MCU Wizard template for 2.4
Task-number: QDS-4729 Change-Id: I17c07e87542ad140c55e8cde5bc75086b0e05cd0 Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
f45080e619
commit
0e8dcb8862
@@ -1,6 +1,6 @@
|
||||
/* File generated by Qt Creator */
|
||||
/* File generated by Qt Design Studio */
|
||||
|
||||
import QmlProject 1.1
|
||||
import QmlProject 1.3
|
||||
|
||||
Project {
|
||||
mainFile: "%{MainQmlFileName}"
|
||||
@@ -32,6 +32,21 @@ Project {
|
||||
filter: "*.ttf;*.otf"
|
||||
}
|
||||
|
||||
ModuleFiles {
|
||||
files: [
|
||||
"imports/Constants/constants_module.qmlproject"
|
||||
]
|
||||
|
||||
MCU.qulModules: [
|
||||
"Controls",
|
||||
"ControlsTemplates",
|
||||
"Timeline",
|
||||
"Shapes"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
/* Following entries are for Qt Design Studio compatibility: */
|
||||
Environment {
|
||||
QT_QUICK_CONTROLS_CONF: "qtquickcontrols2.conf"
|
||||
}
|
||||
@@ -39,8 +54,7 @@ Project {
|
||||
qtForMCUs: true
|
||||
|
||||
/* List of plugin directories passed to QML runtime */
|
||||
importPaths: [ "imports", "asset_imports" ]
|
||||
importPaths: [ "imports" ]
|
||||
|
||||
/* Required for deployment */
|
||||
targetDirectory: "/opt/%{ProjectName}"
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required (VERSION 3.15)
|
||||
cmake_minimum_required (VERSION 3.21.1)
|
||||
|
||||
project(%{ProjectName} VERSION 0.0.1 LANGUAGES C CXX ASM)
|
||||
|
||||
@@ -6,6 +6,10 @@ if (NOT TARGET Qul::Core)
|
||||
find_package(Qul)
|
||||
endif()
|
||||
|
||||
if (Qul_VERSION VERSION_GREATER_EQUAL "2.4")
|
||||
qul_add_target(%{ProjectName} QML_PROJECT %{ProjectName}.qmlproject GENERATE_ENTRYPOINT)
|
||||
app_target_setup_os(%{ProjectName})
|
||||
else()
|
||||
if (Qul_VERSION VERSION_GREATER_EQUAL "1.7")
|
||||
qul_add_target(%{ProjectName})
|
||||
else()
|
||||
@@ -75,3 +79,4 @@ if (Qul_VERSION VERSION_GREATER_EQUAL "1.7")
|
||||
else()
|
||||
app_target_default_main(%{ProjectName} %{RootItemName})
|
||||
endif()
|
||||
endif()
|
||||
|
@@ -8,8 +8,8 @@ QtObject {
|
||||
|
||||
readonly property color backgroundColor: "#e8e8e8"
|
||||
|
||||
/* DirectoryFontLoader doesn't work with Qt Ultralite.
|
||||
However you may want to uncomment this block to load fonts in real qml environment */
|
||||
/* DirectoryFontLoader doesn't work with Qt Quick Ultralite.
|
||||
However you may want to uncomment this block to load fonts in QtQuick environment: */
|
||||
/*
|
||||
property alias fontDirectory: directoryFontLoader.fontDirectory
|
||||
property alias relativeFontDirectory: directoryFontLoader.relativeFontDirectory
|
||||
|
@@ -0,0 +1,13 @@
|
||||
import QmlProject 1.3
|
||||
|
||||
Project {
|
||||
MCU.Module {
|
||||
uri: "Constants"
|
||||
}
|
||||
|
||||
QmlFiles {
|
||||
files: [
|
||||
"Constants.qml"
|
||||
]
|
||||
}
|
||||
}
|
@@ -164,6 +164,10 @@
|
||||
"source": "DirectoryFontLoader.qml.tpl",
|
||||
"target": "%{ProjectDirectory}/imports/Constants/DirectoryFontLoader.qml"
|
||||
},
|
||||
{
|
||||
"source": "constants_module.qmlproject.tpl",
|
||||
"target": "%{ProjectDirectory}/imports/Constants/constants_module.qmlproject"
|
||||
},
|
||||
{
|
||||
"source": "Screen01.ui.qml.tpl",
|
||||
"target": "%{ProjectDirectory}/Screen01.ui.qml",
|
||||
|
Reference in New Issue
Block a user