summaryrefslogtreecommitdiffstats
path: root/src/modules/editor
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-04 11:55:46 +0900
commite2f44208d4d8577ece71fdc6e822cbec0d8364ab (patch)
tree248531bbe735c08c16020a6bde2fd881a155baed /src/modules/editor
parented184e8a40a61c38536ba6b2ab3453dffe7937e5 (diff)
downloadkvirc-feat/moc-files-modules.tar.gz
kvirc-feat/moc-files-modules.zip
Include moc files directly from the related source files (modules)feat/moc-files-modules
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/editor')
-rw-r--r--src/modules/editor/Makefile.am5
-rw-r--r--src/modules/editor/scripteditor.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/editor/Makefile.am b/src/modules/editor/Makefile.am
index 11a48111..55d96437 100644
--- a/src/modules/editor/Makefile.am
+++ b/src/modules/editor/Makefile.am
@@ -9,12 +9,13 @@ pluglib_LTLIBRARIES = libkvieditor.la
libkvieditor_la_LDFLAGS = -module -avoid-version $(SS_LDFLAGS) $(SS_LIBDIRS)
-nodist_libkvieditor_la_SOURCES = moc_scripteditor.cpp
libkvieditor_la_SOURCES = libkvieditor.cpp scripteditor.cpp
+
libkvieditor_la_LIBADD = $(SS_LIBLINK) ../../kvirc/build/libkvirc.la
noinst_HEADERS= scripteditor.h
-moc_%.cpp: %.h
+%.moc: %.h
$(SS_QT_MOC) $< -o $@
+scripteditor.cpp: scripteditor.moc
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp
index 62a49307..185c2115 100644
--- a/src/modules/editor/scripteditor.cpp
+++ b/src/modules/editor/scripteditor.cpp
@@ -1178,3 +1178,5 @@ void KviScriptEditorReplaceDialog::slotNextFind()
{
emit nextFind(m_pFindlineedit->text());
}
+
+#include "scripteditor.moc"