Commit 42f96f36 authored by Laurent Montel's avatar Laurent Montel

Add debug category

parent 03f09c81
......@@ -3,6 +3,11 @@ set(kmail_expertplugin_SRCS
expertplugininterface.cpp
)
ecm_qt_declare_logging_category(kmail_expertplugin_SRCS
HEADER expertplugin_debug.h
IDENTIFIER KMAIL_EXPERT_PLUGIN_LOG
CATEGORY_NAME org.kde.pim.kmail_expertplugin)
kcoreaddons_add_plugin(kmail_expertplugin JSON kmail_expertplugin.json SOURCES
${kmail_expertplugin_SRCS} INSTALL_NAMESPACE kmail)
......
......@@ -18,6 +18,7 @@
*/
#include "expertplugininterface.h"
#include "expertplugin_debug.h"
#include <KLocalizedString>
#include <KActionCollection>
#include <QAction>
......@@ -39,7 +40,7 @@ void ExpertPluginInterface::createAction(KActionCollection *ac)
PimCommon::ActionType type(action, PimCommon::ActionType::Message);
addActionType(type);
} else {
qWarning() << "toggle_mimeparttree is not defined ";
qCWarning(KMAIL_EXPERT_PLUGIN_LOG) << "toggle_mimeparttree is not defined ";
}
}
......
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