Skip to content
Next Next commit
Move main.qml to qml subdir
  • Loading branch information
adazem009 committed Feb 28, 2024
commit 7076d71e43ee5f6003e2abb8d45b7ad9f9966ccd
3 changes: 2 additions & 1 deletion src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ qt_add_executable(${APP_TARGET}
qt_add_qml_module(${APP_TARGET}
URI ScratchCPP
VERSION 1.0
QML_FILES main.qml
QML_FILES
qml/main.qml
)

set(QML_IMPORT_PATH "${QML_IMPORT_PATH};${CMAKE_CURRENT_LIST_DIR}"
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int App::run(int argc, char **argv)
QQmlApplicationEngine engine;
engine.addImportPath(":/");

const QUrl url(u"qrc:/ScratchCPP/main.qml"_qs);
const QUrl url(u"qrc:/ScratchCPP/qml/main.qml"_qs);
QObject::connect(
&engine,
&QQmlApplicationEngine::objectCreated,
Expand Down
Empty file added src/app/qml/CMakeLists.txt
Empty file.
File renamed without changes.