From cd55710098cc8472e6895b7d94f47f016a1382b1 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 4 May 2017 11:21:15 +0200 Subject: Put sources into dedicated directories Change-Id: I424377f4a25f45f6bfcea84ce59812fb674a861b Signed-off-by: Romain Forlot --- examples/qml/CMakeLists.txt | 4 ++-- examples/qml/app/xxxxxx-qml-app.qml | 34 ++++++++++++++++++++++++++++++++++ examples/qml/xxxxxx-qml-app.qml | 34 ---------------------------------- 3 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 examples/qml/app/xxxxxx-qml-app.qml delete mode 100644 examples/qml/xxxxxx-qml-app.qml (limited to 'examples/qml') diff --git a/examples/qml/CMakeLists.txt b/examples/qml/CMakeLists.txt index c8d1bbb..fe6debe 100644 --- a/examples/qml/CMakeLists.txt +++ b/examples/qml/CMakeLists.txt @@ -24,12 +24,12 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/etc/macros.cmake) # Add target to project dependency list PROJECT_TARGET_ADD(qml-example) - add_custom_command(OUTPUT xxxxxx-qml-app.qml + add_custom_command(OUTPUT app/xxxxxx-qml-app.qml COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/xxxxxx-qml-app.qml ${CMAKE_CURRENT_BINARY_DIR} ) # Define project Targets - add_custom_target(${TARGET_NAME} ALL + add_custom_target(${TARGET_NAME} ALL DEPENDS xxxxxx-qml-app.qml ) diff --git a/examples/qml/app/xxxxxx-qml-app.qml b/examples/qml/app/xxxxxx-qml-app.qml new file mode 100644 index 0000000..6333144 --- /dev/null +++ b/examples/qml/app/xxxxxx-qml-app.qml @@ -0,0 +1,34 @@ +import QtQuick 2.0 +import QtQuick.Window 2.0 +import QtQuick.Controls 1.4 + +Window { + // WINDOW PROPERTIES + + visible: true + width: 320 + height: 240 + + // WIDGETS + + Rectangle { + anchors.centerIn: parent + + Column { + Label { + text: "Hello World!" + font.pixelSize: 28 + font.bold: true + anchors.horizontalCenter: parent.horizontalCenter + } + Button { + text: "Quit" + onClicked: { Qt.quit() } + anchors.horizontalCenter: parent.horizontalCenter + } + anchors.centerIn: parent + spacing: 20 + } + } + +} diff --git a/examples/qml/xxxxxx-qml-app.qml b/examples/qml/xxxxxx-qml-app.qml deleted file mode 100644 index 6333144..0000000 --- a/examples/qml/xxxxxx-qml-app.qml +++ /dev/null @@ -1,34 +0,0 @@ -import QtQuick 2.0 -import QtQuick.Window 2.0 -import QtQuick.Controls 1.4 - -Window { - // WINDOW PROPERTIES - - visible: true - width: 320 - height: 240 - - // WIDGETS - - Rectangle { - anchors.centerIn: parent - - Column { - Label { - text: "Hello World!" - font.pixelSize: 28 - font.bold: true - anchors.horizontalCenter: parent.horizontalCenter - } - Button { - text: "Quit" - onClicked: { Qt.quit() } - anchors.horizontalCenter: parent.horizontalCenter - } - anchors.centerIn: parent - spacing: 20 - } - } - -} -- cgit 1.2.3-korg