Skip to content

Commit 7076d71

Browse files
committed
Move main.qml to qml subdir
1 parent 9075efb commit 7076d71

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

src/app/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ qt_add_executable(${APP_TARGET}
1111
qt_add_qml_module(${APP_TARGET}
1212
URI ScratchCPP
1313
VERSION 1.0
14-
QML_FILES main.qml
14+
QML_FILES
15+
qml/main.qml
1516
)
1617

1718
set(QML_IMPORT_PATH "${QML_IMPORT_PATH};${CMAKE_CURRENT_LIST_DIR}"

src/app/app.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ int App::run(int argc, char **argv)
6565
QQmlApplicationEngine engine;
6666
engine.addImportPath(":/");
6767

68-
const QUrl url(u"qrc:/ScratchCPP/main.qml"_qs);
68+
const QUrl url(u"qrc:/ScratchCPP/qml/main.qml"_qs);
6969
QObject::connect(
7070
&engine,
7171
&QQmlApplicationEngine::objectCreated,

src/app/qml/CMakeLists.txt

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)