mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
fix(qt6): build errors from a11y pass + AUTOMOC hpp fix
Three QML syntax errors introduced by the a11y agents: - CommentsDBAL.js:25 — string literal split across lines by line-wrapper - LuaEditor.qml:50 — semicolon between sibling QML elements (invalid) - SMTPConfigEditor.qml:48 — same semicolon issue generate_cmake.py: list .hpp files in qt_add_executable so AUTOMOC scans them for Q_OBJECT — required for header-only Qt classes to link (signals/vtable are generated by moc, not the compiler). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# AUTO-GENERATED by generate_cmake.py — do not edit manually
|
||||
# Generated from cmake_config.json | 296 QML files, 3 C++ sources, 22 SVGs, 1 audio assets
|
||||
# Generated from cmake_config.json | 296 QML files, 8 C++ sources, 22 SVGs, 1 audio assets
|
||||
#
|
||||
# Discovered packages:
|
||||
# analytics v1.0.0 - Analytics Studio
|
||||
@@ -47,6 +47,11 @@ qt_add_executable(dbal-qml
|
||||
main.cpp
|
||||
src/DBALClient.cpp
|
||||
src/PackageLoader.cpp
|
||||
src/DBALRequest.hpp
|
||||
src/DBALTypes.hpp
|
||||
src/ModPlayer.hpp
|
||||
src/NodeRegistry.hpp
|
||||
src/PackageRegistry.hpp
|
||||
)
|
||||
|
||||
target_compile_definitions(dbal-qml PRIVATE SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
@@ -211,7 +211,9 @@ def generate_cmake(config: dict, root_dir: Path) -> str:
|
||||
qt_components_str = " ".join(all_components)
|
||||
|
||||
# Build source files list
|
||||
source_files = ["main.cpp"] + cpp_sources["cpp"]
|
||||
# .hpp files with Q_OBJECT must be listed so AUTOMOC scans them
|
||||
hpp_headers = [h for h in cpp_sources["h"] if h.endswith(".hpp")]
|
||||
source_files = ["main.cpp"] + cpp_sources["cpp"] + hpp_headers
|
||||
|
||||
# Collect all QML files: (path, alias_or_None)
|
||||
all_qml: list[tuple[str, Optional[str]]] = []
|
||||
|
||||
Reference in New Issue
Block a user