Commit 44bd6814 authored by Laurent Montel's avatar Laurent Montel 😁

Add own debug category

parent cb405057
......@@ -5,7 +5,7 @@ set(libcomposereditor_webengine_SRCS
private/composerwebengine_p.cpp
)
ecm_qt_declare_logging_category(libcomposereditor_webengine_SRCS HEADER composereditorwebengine_debug.h IDENTIFIER COMPOSEREDITORNG_LOG CATEGORY_NAME log_composereditorwebengine)
ecm_qt_declare_logging_category(libcomposereditor_webengine_SRCS HEADER composereditorwebengine_debug.h IDENTIFIER COMPOSEREDITORWEBENGINE_LOG CATEGORY_NAME log_composereditorwebengine)
add_library(KF5ComposerEditorWebEngine ${libcomposereditor_webengine_SRCS})
......
......@@ -20,6 +20,7 @@
#include "composerwebengine.h"
#include "private/composerwebengine_p.h"
#include "composereditorwebengine_debug.h"
#include <kpimtextedit/emoticontexteditaction.h>
#include "kpimtextedit/texttospeech.h"
#include <QStandardPaths>
......@@ -47,7 +48,7 @@ ComposerWebEngine::ComposerWebEngine(QWidget *parent)
d(new ComposerEditorWebEngine::ComposerEditorWebEnginePrivate(this))
{
QFile file(initialHtml());
//qCDebug(COMPOSEREDITORNG_LOG) << file.fileName();
qCDebug(COMPOSEREDITORWEBENGINE_LOG) << file.fileName();
if (!file.open(QIODevice::ReadOnly)) {
KMessageBox::error(this, i18n("Cannot open template file %1.", QFileInfo(file).absoluteFilePath()), i18n("composer editor"));
......
# kdepim-apps-lib
log_composereditorng kdepim-apps-lib (composereditorng)
log_composereditorwebengine kdepim-apps-lib (composereditorwebengine)
log_libsendlater kdepim-apps-lib (libsendlater)
log_kdepimdbusinterface kdepim-apps-lib (kdepimdbusinterface)
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