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
KReversi
Commits
c541e223
Commit
c541e223
authored
Jan 08, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kdelibs4support--
parent
e443d476
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
8 deletions
+3
-8
Engine.cpp
Engine.cpp
+0
-2
commondefs.cpp
commondefs.cpp
+1
-1
kreversigame.cpp
kreversigame.cpp
+0
-1
mainwindow.cpp
mainwindow.cpp
+2
-3
startgamedialog.cpp
startgamedialog.cpp
+0
-1
No files found.
Engine.cpp
View file @
c541e223
...
@@ -119,8 +119,6 @@
...
@@ -119,8 +119,6 @@
#include <QVector>
#include <QVector>
#include <QApplication>
#include <QApplication>
#include <KDebug>
// ================================================================
// ================================================================
// Classes SquareStackEntry and SquareStack
// Classes SquareStackEntry and SquareStack
...
...
commondefs.cpp
View file @
c541e223
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
********************************************************************/
********************************************************************/
#include <commondefs.h>
#include <commondefs.h>
#include <KLocal
e
>
#include <KLocal
izedString
>
static
QString
chipPrefixString
[
2
]
=
{
"chip_bw"
,
"chip_color"
};
static
QString
chipPrefixString
[
2
]
=
{
"chip_bw"
,
"chip_color"
};
...
...
kreversigame.cpp
View file @
c541e223
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
********************************************************************/
********************************************************************/
#include <kreversigame.h>
#include <kreversigame.h>
#include <KDebug>
const
int
KReversiGame
::
DX
[
KReversiGame
::
DIRECTIONS_COUNT
]
=
{
0
,
0
,
1
,
1
,
1
,
-
1
,
-
1
,
-
1
};
const
int
KReversiGame
::
DX
[
KReversiGame
::
DIRECTIONS_COUNT
]
=
{
0
,
0
,
1
,
1
,
1
,
-
1
,
-
1
,
-
1
};
const
int
KReversiGame
::
DY
[
KReversiGame
::
DIRECTIONS_COUNT
]
=
{
1
,
-
1
,
1
,
0
,
-
1
,
1
,
0
,
-
1
};
const
int
KReversiGame
::
DY
[
KReversiGame
::
DIRECTIONS_COUNT
]
=
{
1
,
-
1
,
1
,
0
,
-
1
,
1
,
0
,
-
1
};
...
...
mainwindow.cpp
View file @
c541e223
...
@@ -24,11 +24,10 @@
...
@@ -24,11 +24,10 @@
********************************************************************/
********************************************************************/
#include <mainwindow.h>
#include <mainwindow.h>
#include <
K
Debug>
#include <
Q
Debug>
#include <QIcon>
#include <QIcon>
#include <KLocalizedString>
#include <KLocalizedString>
#include <KMessageBox>
#include <KMessageBox>
#include <KStandardDirs>
#include <QStatusBar>
#include <QStatusBar>
#include <KActionCollection>
#include <KActionCollection>
#include <KStandardGameAction>
#include <KStandardGameAction>
...
@@ -333,7 +332,7 @@ void KReversiMainWindow::slotDialogReady()
...
@@ -333,7 +332,7 @@ void KReversiMainWindow::slotDialogReady()
void
KReversiMainWindow
::
showEvent
(
QShowEvent
*
)
void
KReversiMainWindow
::
showEvent
(
QShowEvent
*
)
{
{
if
(
m_firstShow
&&
m_startInDemoMode
)
{
if
(
m_firstShow
&&
m_startInDemoMode
)
{
k
Debug
()
<<
"starting demo..."
;
q
Debug
()
<<
"starting demo..."
;
startDemo
();
startDemo
();
}
else
if
(
m_firstShow
)
{
}
else
if
(
m_firstShow
)
{
QTimer
::
singleShot
(
0
,
this
,
SLOT
(
slotNewGame
()));
QTimer
::
singleShot
(
0
,
this
,
SLOT
(
slotNewGame
()));
...
...
startgamedialog.cpp
View file @
c541e223
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include <QCloseEvent>
#include <QCloseEvent>
#include <KgDifficulty>
#include <KgDifficulty>
#include <KDebug>
#include <QSvgRenderer>
#include <QSvgRenderer>
#include <KLocalizedString>
#include <KLocalizedString>
#include <QPainter>
#include <QPainter>
...
...
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