Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KShisen
Commits
663648c5
Commit
663648c5
authored
Dec 31, 2015
by
Frederik Schwarzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge debugging stuff.
parent
b839346a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
59 deletions
+14
-59
src/CMakeLists.txt
src/CMakeLists.txt
+1
-2
src/app.cpp
src/app.cpp
+1
-1
src/board.cpp
src/board.cpp
+1
-1
src/board.h
src/board.h
+0
-1
src/debug.h
src/debug.h
+9
-0
src/kshisen_debug.cpp
src/kshisen_debug.cpp
+0
-24
src/kshisen_debug.h
src/kshisen_debug.h
+0
-29
src/main.cpp
src/main.cpp
+2
-1
No files found.
src/CMakeLists.txt
View file @
663648c5
set
(
kshisen_SRCS
main.cpp
board.cpp
app.cpp
kshisen_debug.cpp
)
app.cpp
)
ki18n_wrap_ui
(
kshisen_SRCS settings.ui
)
...
...
src/app.cpp
View file @
663648c5
...
...
@@ -53,7 +53,7 @@
// KShisen
#include "board.h"
#include "
kshisen_
debug.h"
#include "debug.h"
#include "prefs.h"
#include "ui_settings.h"
...
...
src/board.cpp
View file @
663648c5
...
...
@@ -36,7 +36,7 @@
#include <KLocalizedString>
// KShisen
#include "
kshisen_
debug.h"
#include "debug.h"
#include "prefs.h"
...
...
src/board.h
View file @
663648c5
...
...
@@ -45,7 +45,6 @@
// KShisen
#include "debug.h"
#include "kshisen_debug.h"
using
TilePos
=
QPoint
;
...
...
src/debug.h
View file @
663648c5
#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
src/kshisen_debug.cpp
deleted
100644 → 0
View file @
b839346a
/* 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"
)
src/kshisen_debug.h
deleted
100644 → 0
View file @
b839346a
/* 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
src/main.cpp
View file @
663648c5
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment