Commit a74992db authored by Stefan Brüns's avatar Stefan Brüns
Browse files

[kio/info] Use ecm_qt_declare_logging_category

parent 54882f1a
...@@ -8,6 +8,12 @@ target_link_libraries(kio_info ...@@ -8,6 +8,12 @@ target_link_libraries(kio_info
) )
set_target_properties(kio_info PROPERTIES OUTPUT_NAME "info") set_target_properties(kio_info PROPERTIES OUTPUT_NAME "info")
ecm_qt_declare_logging_category(kio_info
HEADER kio_info_debug.h
IDENTIFIER LOG_KIO_INFO
CATEGORY_NAME kio_info
)
install(TARGETS kio_info DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio) install(TARGETS kio_info DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio)
install( FILES kde-info2html.conf DESTINATION ${KDE_INSTALL_DATADIR}/kio_info ) install( FILES kde-info2html.conf DESTINATION ${KDE_INSTALL_DATADIR}/kio_info )
install( FILES info.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) install( FILES info.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include <kshell.h> #include <kshell.h>
#include <QUrl> #include <QUrl>
Q_LOGGING_CATEGORY(LOG_KIO_INFO, "kio_info")
using namespace KIO; using namespace KIO;
......
...@@ -3,11 +3,9 @@ ...@@ -3,11 +3,9 @@
#ifndef __info_h__ #ifndef __info_h__
#define __info_h__ #define __info_h__
#include <kio/slavebase.h> #include "kio_info_debug.h"
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(LOG_KIO_INFO)
#include <kio/slavebase.h>
class InfoProtocol : public KIO::SlaveBase class InfoProtocol : public KIO::SlaveBase
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment