Skip to content

Commit

Permalink
Rename QML module to match project name
Browse files Browse the repository at this point in the history
We still keep the Backend name for the singleton instance.
  • Loading branch information
vimpostor committed Dec 3, 2024
1 parent 40c98d7 commit e3c7ba5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ qt_add_resources(RESOURCES ${RSRC})

qt_add_executable(${PROJECT_NAME} ${SRCS} ${RESOURCES})

qt_add_qml_module(${PROJECT_NAME} URI "Backend" VERSION "${PROJECT_VERSION}" NO_RESOURCE_TARGET_PATH QML_FILES ${QMLS} SOURCES "src/Models/path_model.cpp")
qt_add_qml_module(${PROJECT_NAME} URI "Blobdrop" VERSION "${PROJECT_VERSION}" NO_RESOURCE_TARGET_PATH QML_FILES ${QMLS} SOURCES "src/Models/path_model.cpp")
set_target_properties(${PROJECT_NAME} PROPERTIES QT_QMLCACHEGEN_ARGUMENTS "--only-bytecode")

target_link_libraries(${PROJECT_NAME} PRIVATE ${LINK_LIBS})
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) {
QQmlApplicationEngine engine;
engine.addImportPath(QStringLiteral(":/"));

engine.loadFromModule("Backend", "Main");
engine.loadFromModule("Blobdrop", "Main");
if (engine.rootObjects().isEmpty()) {
return EXIT_FAILURE;
}
Expand Down
2 changes: 1 addition & 1 deletion src/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import QtQuick
import QtQuick.Controls.Material
import Quartz

import Backend
import Blobdrop

ApplicationWindow {
id: root
Expand Down
2 changes: 1 addition & 1 deletion src/qml/PathView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import QtQuick
import QtQuick.Controls.Material
import Quartz

import Backend
import Blobdrop

ListView {
id: pathView
Expand Down
2 changes: 1 addition & 1 deletion src/qml/Welcome.qml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import QtQuick
import QtQuick.Controls.Material

import Backend
import Blobdrop

Column {
spacing: 64
Expand Down

0 comments on commit e3c7ba5

Please sign in to comment.