Commit aeeb30f4 authored by Laurent Montel's avatar Laurent Montel 😁

Fix debug categories

parent 2f65aa55
......@@ -12,3 +12,4 @@ log_kmail_changecaseeditorplugin kdepim-addons (kmail changecase editor plugins)
log_adblockinterceptor kdepim-addons (adblock interceptor)
log_donottrackinterceptor kdepim-addons (do not track interceptor)
log_expandurlplugin kdepim-addons (Expand Url Plugin)
log_externalscriptplugin kdepim-addons (External Script Plugin)
......@@ -4,7 +4,8 @@ set(messageviewer_externalscriptplugin_SRCS
viewerpluginexternalscriptmanager.cpp
viewerpluginexternalscriptinfo.cpp
)
ecm_qt_declare_logging_category(messageviewer_externalscriptplugin_SRCS HEADER externalscriptplugin_debug.h IDENTIFIER CREATETODOPLUGIN_LOG CATEGORY_NAME log_externalscriptplugin)
ecm_qt_declare_logging_category(messageviewer_externalscriptplugin_SRCS HEADER externalscriptplugin_debug.h IDENTIFIER EXTERNALSCRIPTPLUGIN_LOG CATEGORY_NAME log_externalscriptplugin)
add_library(messageviewer_externalscriptplugin MODULE ${messageviewer_externalscriptplugin_SRCS})
target_link_libraries(messageviewer_externalscriptplugin
......
......@@ -17,6 +17,7 @@
#include "viewerpluginexternalscriptinterface.h"
#include "viewerpluginexternalscriptmanager.h"
#include "externalscriptplugin_debug.h"
#include <QHBoxLayout>
#include <QIcon>
......@@ -64,9 +65,9 @@ void ViewerPluginExternalscriptInterface::execute()
if (mCurrentInfo.count() == 2) {
//TODO
} else {
qDebug() << "Problem with arguments";
qCDebug(EXTERNALSCRIPTPLUGIN_LOG) << "Problem with number of arguments " << mCurrentInfo.count();
}
//TODO clear();
clear();
}
void ViewerPluginExternalscriptInterface::clear()
......
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