fix: move DockTabButtons to header for MSVC automoc compatibility

automoc doesn't generate main.moc on MSVC, breaking the build.
Move DockTabButtons (which needs Q_OBJECT) to its own header so
automoc handles it as moc_dock_tab_buttons.cpp instead.
This commit is contained in:
IChooseYou
2026-03-06 06:14:59 -07:00
committed by IChooseYou
parent f981fe456d
commit 8d92957837
4 changed files with 94 additions and 62 deletions

View File

@@ -344,6 +344,11 @@ if(BUILD_TESTING)
endif()
add_test(NAME test_controller COMMAND test_controller)
add_executable(grab_tabs tests/grab_tabs.cpp
src/themes/theme.cpp src/themes/thememanager.cpp src/resources.qrc)
target_include_directories(grab_tabs PRIVATE src)
target_link_libraries(grab_tabs PRIVATE ${QT}::Widgets ${QT}::Svg ${QT}::Test)
add_executable(test_validation tests/test_validation.cpp
src/editor.cpp src/compose.cpp src/format.cpp src/addressparser.cpp src/controller.cpp
src/processpicker.cpp src/processpicker.ui src/providerregistry.cpp