summaryrefslogtreecommitdiffstats
path: root/src/modules/theme
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-02-04 10:14:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-02-05 21:05:02 +0900
commit7dd6e31b9864a4c294530d9f52dea8e8da987778 (patch)
tree0e7fe09321a00102694d85ad82d498079c09f871 /src/modules/theme
parente440292127a54bffc02b000bd983540fe75bbec9 (diff)
downloadkvirc-7dd6e31b9864a4c294530d9f52dea8e8da987778.tar.gz
kvirc-7dd6e31b9864a4c294530d9f52dea8e8da987778.zip
Include moc files directly from the related source files (modules)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/theme')
-rw-r--r--src/modules/theme/Makefile.am14
-rw-r--r--src/modules/theme/managementdialog.cpp2
-rw-r--r--src/modules/theme/packthemedialog.cpp1
-rw-r--r--src/modules/theme/savethemedialog.cpp1
4 files changed, 8 insertions, 10 deletions
diff --git a/src/modules/theme/Makefile.am b/src/modules/theme/Makefile.am
index 079c436b..1ba74a09 100644
--- a/src/modules/theme/Makefile.am
+++ b/src/modules/theme/Makefile.am
@@ -15,10 +15,6 @@ libkvitheme_la_SOURCES = libkvitheme.cpp \
savethemedialog.cpp \
themefunctions.cpp
-nodist_libkvitheme_la_SOURCES = moc_managementdialog.cpp \
- moc_packthemedialog.cpp \
- moc_savethemedialog.cpp
-
libkvitheme_la_LIBADD = $(SS_LIBLINK) ../../kvirc/build/libkvirc.la
noinst_HEADERS= managementdialog.h \
@@ -26,11 +22,9 @@ noinst_HEADERS= managementdialog.h \
savethemedialog.h \
themefunctions.h
-moc_managementdialog.cpp: managementdialog.h
+%.moc: %.h
$(SS_QT_MOC) $< -o $@
-moc_packthemedialog.cpp: packthemedialog.h
- $(SS_QT_MOC) $< -o $@
-
-moc_savethemedialog.cpp: savethemedialog.h
- $(SS_QT_MOC) $< -o $@
+managementdialog.cpp: managementdialog.moc
+packthemedialog.cpp: packthemedialog.moc
+savethemedialog.cpp: savethemedialog.moc
diff --git a/src/modules/theme/managementdialog.cpp b/src/modules/theme/managementdialog.cpp
index 7afabc9b..5e4006ca 100644
--- a/src/modules/theme/managementdialog.cpp
+++ b/src/modules/theme/managementdialog.cpp
@@ -454,3 +454,5 @@ void KviThemeManagementDialog::tipRequest(KviDynamicToolTip *pTip,const TQPoint
pTip->tip(m_pListBox->itemRect(it),szThemeDescription);
}
+
+#include "managementdialog.moc"
diff --git a/src/modules/theme/packthemedialog.cpp b/src/modules/theme/packthemedialog.cpp
index d4c5f5b8..25b578d6 100644
--- a/src/modules/theme/packthemedialog.cpp
+++ b/src/modules/theme/packthemedialog.cpp
@@ -466,3 +466,4 @@ bool KviPackThemeDialog::packTheme()
return true;
}
+#include "packthemedialog.moc"
diff --git a/src/modules/theme/savethemedialog.cpp b/src/modules/theme/savethemedialog.cpp
index fd8ac85f..0902acd4 100644
--- a/src/modules/theme/savethemedialog.cpp
+++ b/src/modules/theme/savethemedialog.cpp
@@ -290,3 +290,4 @@ bool KviSaveThemeDialog::saveTheme()
return true;
}
+#include "savethemedialog.moc"