aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <[email protected]>2016-05-26 17:03:33 +0200
committerChristoph Cullmann <[email protected]>2016-05-26 17:03:33 +0200
commitb727224a1d5a1ba1cdd8ea1b473f262a514083b5 (patch)
treea2da99f58cb4a4da8ce8e0284f65926a93034f82
parent8721cd331f4c69d66995ca7408edd8232ea105f5 (diff)
Porting XML Validation plugin to KF5
include ui file in resource and there we are: mac + win compatible ;)
-rw-r--r--addons/xmlcheck/CMakeLists.txt10
-rw-r--r--addons/xmlcheck/plugin.qrc6
2 files changed, 10 insertions, 6 deletions
diff --git a/addons/xmlcheck/CMakeLists.txt b/addons/xmlcheck/CMakeLists.txt
index 0dfbeaa..67531a6 100644
--- a/addons/xmlcheck/CMakeLists.txt
+++ b/addons/xmlcheck/CMakeLists.txt
@@ -12,6 +12,9 @@ set(katexmlcheckplugin_PART_SRCS
plugin_katexmlcheck.cpp
)
+# resource for ui file and stuff
+qt5_add_resources(katexmlcheckplugin_PART_SRCS plugin.qrc)
+
#kde4_add_plugin(katexmlcheckplugin ${katexmlcheckplugin_PART_SRCS})
add_library(katexmlcheckplugin MODULE ${katexmlcheckplugin_PART_SRCS})
@@ -29,10 +32,5 @@ target_link_libraries(katexmlcheckplugin
# this did not changed
install(TARGETS katexmlcheckplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor )
-########### install files ###############
-#install( FILES ui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kate/plugins/katexmlcheck )
-install( FILES ui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/katexmlcheck )
-
-
# It is to generate json
-kcoreaddons_desktop_to_json (katexmlcheckplugin katexmlcheck.desktop) \ No newline at end of file
+kcoreaddons_desktop_to_json (katexmlcheckplugin katexmlcheck.desktop)
diff --git a/addons/xmlcheck/plugin.qrc b/addons/xmlcheck/plugin.qrc
new file mode 100644
index 0000000..51a63ec
--- /dev/null
+++ b/addons/xmlcheck/plugin.qrc
@@ -0,0 +1,6 @@
+<!DOCTYPE RCC>
+<RCC version="1.0">
+ <qresource prefix="/kxmlgui5/katexmlcheck">
+ <file>ui.rc</file>
+ </qresource>
+</RCC>