Commit 663648c5 authored by Frederik Schwarzer's avatar Frederik Schwarzer

Merge debugging stuff.

parent b839346a
set(kshisen_SRCS
main.cpp
board.cpp
app.cpp
kshisen_debug.cpp)
app.cpp)
ki18n_wrap_ui(kshisen_SRCS settings.ui)
......
......@@ -53,7 +53,7 @@
// KShisen
#include "board.h"
#include "kshisen_debug.h"
#include "debug.h"
#include "prefs.h"
#include "ui_settings.h"
......
......@@ -36,7 +36,7 @@
#include <KLocalizedString>
// KShisen
#include "kshisen_debug.h"
#include "debug.h"
#include "prefs.h"
......
......@@ -45,7 +45,6 @@
// KShisen
#include "debug.h"
#include "kshisen_debug.h"
using TilePos = QPoint;
......
#ifndef DEBUG_H
#define DEBUG_H
// Qt
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KSHISEN_LOG)
// Use for debugging game mode.
//#define DEBUGGING
#endif // DEBUG_H
/* 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.
*/
// KShisen
#include "kshisen_debug.h"
Q_LOGGING_CATEGORY(KSHISEN_LOG, "log_kshisen")
/* 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 KSHISEN_DEBUG_H
#define KSHISEN_DEBUG_H
// Qt
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KSHISEN_LOG)
#endif
......@@ -30,8 +30,9 @@
// KShisen
#include "app.h"
#include "debug.h"
Q_LOGGING_CATEGORY(KSHISEN_LOG, "log_kshisen")
static const char description[] = I18N_NOOP("A KDE game similar to Mahjongg");
int main(int argc, char ** argv)
......
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