Commit eb8386fb authored by Luigi Toscano's avatar Luigi Toscano

Use ecm_qt_declare_logging_category for ksirkskineditor

Already ported to categorized logging, but use the macro to define
the logging category as well.
parent fea852d7
......@@ -8,7 +8,6 @@ include_directories(
########### next target ###############
set(ksirkskineditor_SRCS
ksirkskineditor_debug.cpp
main.cpp
mainwindow.cpp
ksirkSkinEditorConfigDialog.cpp
......@@ -24,6 +23,11 @@ set(ksirkskineditor_SRCS
goal.cpp
)
ecm_qt_declare_logging_category(ksirkskineditor_SRCS
HEADER ksirkskineditor_debug.h
IDENTIFIER KSIRKSKINEDITOR_LOG
CATEGORY_NAME org.kde.ksirk.skineditor)
set(ksirkskineditor_UI
# ksirkskineditor.ui
preferences.ui
......
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "ksirkskineditor_debug.h"
Q_LOGGING_CATEGORY(KSIRKSKINEDITOR_LOG, "log_ksirkskineditor")
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KSIRKSKINEDITOR_DEBUG_H
#define KSIRKSKINEDITOR_DEBUG_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KSIRKSKINEDITOR_LOG)
#endif
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