Commit d3abdf2f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to qdebug categories

parent 62be5834
......@@ -42,7 +42,7 @@ include(ECMSetupVersion)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMQtDeclareLoggingCategory)
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KTUBERLING VERSION_HEADER ktuberling_version.h)
add_definitions(${QT_DEFINITIONS})
......@@ -67,7 +67,7 @@ set(ktuberling_common_SRCS
soundfactory.cpp
filefactory.cpp
)
ecm_qt_declare_logging_category(ktuberling_common_SRCS HEADER ktuberling_debug.h IDENTIFIER KTUBERLING_LOG CATEGORY_NAME org.kde.kdegames.ktuberling)
if(${CMAKE_SYSTEM_NAME} MATCHES "Android")
set(ktuberling_mobile_SRCS
${ktuberling_common_SRCS}
......@@ -138,4 +138,5 @@ else()
endif()
install(FILES org.kde.ktuberling.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES ktuberling.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
org.kde.kdegames.ktuberling ktuberling (kdegames) IDENTIFIER [KTUBERLING_LOG]
......@@ -9,7 +9,7 @@
***************************************************************************/
#include <QApplication>
#include <QDebug>
#include "ktuberling_debug.h"
#include <QDesktopWidget>
#include <QHBoxLayout>
#include <QLabel>
......
......@@ -14,7 +14,7 @@
#include <kconfig.h>
#include <kconfiggroup.h>
#include <qdebug.h>
#include "ktuberling_debug.h"
#include <QAction>
#include <QApplication>
......@@ -415,7 +415,7 @@ bool PlayGround::loadPlayGround(const QString &gameboardFile)
}
else
{
qWarning() << objectName << "does not exist. Check" << gameboardFile;
qCWarning(KTUBERLING_LOG) << objectName << "does not exist. Check" << gameboardFile;
}
}
......
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