summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-03-28 14:00:45 +0200
committerPali Roh├ír <[email protected]>2017-12-22 09:10:26 +0100
commit89bc1db381ea755eb72c195d0083f1c72c65513b (patch)
tree243f35eb1f9f589c577e386ca1c5039433e44f53
parentcfd3c0fc32def19429cde2d3729f997919b1d7e4 (diff)
Port to qCDebug
-rw-r--r--kopete.categories1
-rw-r--r--plugins/texteffect/CMakeLists.txt7
-rw-r--r--plugins/texteffect/texteffectplugin.cpp2
-rw-r--r--plugins/texteffect/texteffectpreferences.cpp18
4 files changed, 15 insertions, 13 deletions
diff --git a/kopete.categories b/kopete.categories
index 82e66e0..e53fe8d 100644
--- a/kopete.categories
+++ b/kopete.categories
@@ -1,3 +1,4 @@
org.kde.kopete.libkopete kopete (libkopete)
org.kde.kopete.jabber kopete (jabber protocol)
org.kde.kopete.plugin.otr kopete (otr plugin)
+org.kde.plugin.texteffect kopete (texteffect plugin)
diff --git a/plugins/texteffect/CMakeLists.txt b/plugins/texteffect/CMakeLists.txt
index 8986abe..4ae5981 100644
--- a/plugins/texteffect/CMakeLists.txt
+++ b/plugins/texteffect/CMakeLists.txt
@@ -5,10 +5,11 @@ include_directories(
${KOPETE_INCLUDES}
)
-
+set(kopete_texteffect_common_SRCS)
+ecm_qt_declare_logging_category(kopete_texteffect_common_SRCS HEADER plugin_texteffect_debug.h IDENTIFIER KOPETE_PLUGIN_TEXTEFFECT_LOG CATEGORY_NAME org.kde.plugin.texteffect)
########### next target ###############
-set(kopete_texteffect_PART_SRCS texteffectplugin.cpp texteffectconfig.cpp )
+set(kopete_texteffect_PART_SRCS texteffectplugin.cpp texteffectconfig.cpp ${kopete_texteffect_common_SRCS})
add_library(kopete_texteffect MODULE ${kopete_texteffect_PART_SRCS})
@@ -20,7 +21,7 @@ install(TARGETS kopete_texteffect DESTINATION ${KDE_INSTALL_PLUGINDIR})
########### next target ###############
-set(kcm_kopete_texteffect_PART_SRCS texteffectconfig.cpp texteffectpreferences.cpp )
+set(kcm_kopete_texteffect_PART_SRCS texteffectconfig.cpp texteffectpreferences.cpp ${kopete_texteffect_common_SRCS})
ki18n_wrap_ui(kcm_kopete_texteffect_PART_SRCS texteffectprefs.ui )
diff --git a/plugins/texteffect/texteffectplugin.cpp b/plugins/texteffect/texteffectplugin.cpp
index a4dc949..367b748 100644
--- a/plugins/texteffect/texteffectplugin.cpp
+++ b/plugins/texteffect/texteffectplugin.cpp
@@ -19,7 +19,7 @@
#include <stdlib.h>
-#include <kdebug.h>
+#include "plugin_texteffect_debug.h"
#include <kgenericfactory.h>
#include <QColor>
diff --git a/plugins/texteffect/texteffectpreferences.cpp b/plugins/texteffect/texteffectpreferences.cpp
index 52e1f5d..60fdd86 100644
--- a/plugins/texteffect/texteffectpreferences.cpp
+++ b/plugins/texteffect/texteffectpreferences.cpp
@@ -28,7 +28,7 @@
#include <KLocalizedString>
#include <QColorDialog>
#include <kgenericfactory.h>
-#include <kdebug.h>
+#include "plugin_texteffect_debug.h"
#include "ui_texteffectprefs.h"
#include "texteffectconfig.h"
@@ -41,16 +41,16 @@ TextEffectPreferences::TextEffectPreferences(QWidget *parent, const QVariantList
{
QVBoxLayout *l = new QVBoxLayout(this);
QWidget *w = new QWidget;
- kDebug(14310) << "Creating preferences dialog";
+ qCDebug(KOPETE_PLUGIN_TEXTEFFECT_LOG) << "Creating preferences dialog";
preferencesDialog = new Ui::TextEffectPrefs;
preferencesDialog->setupUi(w);
l->addWidget(w);
- kDebug(14310) << "Creating config object";
+ qCDebug(KOPETE_PLUGIN_TEXTEFFECT_LOG) << "Creating config object";
config = new TextEffectConfig;
- kDebug(14310) << "Setting up connections";
+ qCDebug(KOPETE_PLUGIN_TEXTEFFECT_LOG) << "Setting up connections";
connect(preferencesDialog->mColorsAdd, SIGNAL(pressed()),
this, SLOT(slotAddPressed()));
@@ -90,7 +90,7 @@ TextEffectPreferences::~TextEffectPreferences()
void TextEffectPreferences::load()
{
- kDebug(14310) << "ENTER";
+ qCDebug(KOPETE_PLUGIN_TEXTEFFECT_LOG) << "ENTER";
config->load();
@@ -107,12 +107,12 @@ void TextEffectPreferences::load()
// Indicate that we have not changed ^_^
emit changed(false);
- kDebug(14310) << "EXIT";
+ qCDebug(KOPETE_PLUGIN_TEXTEFFECT_LOG) << "EXIT";
}
void TextEffectPreferences::save()
{
- qDebug() << "ENTER";
+ qCDebug(KOPETE_PLUGIN_TEXTEFFECT_LOG) << "ENTER";
// Save the settings
config->setColors(colors());
config->setColorRandom(preferencesDialog->m_colorRandom->isChecked());
@@ -133,7 +133,7 @@ void TextEffectPreferences::save()
// Indicate that we have not changed ^_^
emit changed(false);
- qDebug() << "EXIT";
+ qCDebug(KOPETE_PLUGIN_TEXTEFFECT_LOG) << "EXIT";
}
QStringList TextEffectPreferences::colors()
@@ -207,7 +207,7 @@ void TextEffectPreferences::slotDownPressed()
void TextEffectPreferences::slotSettingChanged()
{
- qDebug() << "Called"
+ qCDebug(KOPETE_PLUGIN_TEXTEFFECT_LOG) << "Called"
<< endl;
// Indicate that our settings have changed
emit changed(true);