Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Bovo
Commits
c7fb6187
Commit
c7fb6187
authored
Oct 26, 2022
by
Albert Astals Cid
Browse files
Remove unused variables
parent
0cec8584
Pipeline
#256084
passed with stage
in 1 minute and 6 seconds
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
gui/hintitem.cc
View file @
c7fb6187
...
...
@@ -37,7 +37,6 @@ namespace gui {
HintItem
::
HintItem
(
Scene
*
scene
,
const
Move
&
hint
,
bool
animate
,
qreal
fill
)
:
QGraphicsSvgItem
(),
m_scene
(
scene
),
m_row
(
hint
.
y
()),
m_col
(
hint
.
x
()),
m_fill
(
fill
)
{
m_sizeShrink
=
1.0
/
(
qrand
()
%
5
+
7.0
);
setElementId
(
QString
(
hint
.
player
()
==
X
?
QStringLiteral
(
"x%1"
)
:
QStringLiteral
(
"o%1"
))
.
arg
(
QString
::
number
(
qrand
()
%
5
+
1
)));
m_tick
=
16
;
...
...
gui/hintitem.h
View file @
c7fb6187
...
...
@@ -67,7 +67,7 @@ private:
bool
m_animate
;
qreal
m_opacity
;
bool
m_tickUp
;
qreal
m_sizeShrink
,
m_fill
;
qreal
m_fill
;
QTimer
*
m_ticker
;
};
...
...
gui/mark.cc
View file @
c7fb6187
...
...
@@ -36,7 +36,6 @@ namespace gui {
Mark
::
Mark
(
Scene
*
scene
,
const
Move
&
move
,
bool
animate
,
qreal
fill
)
:
QGraphicsSvgItem
(),
m_scene
(
scene
),
m_row
(
move
.
y
()),
m_col
(
move
.
x
()),
m_fill
(
fill
)
{
m_sizeShrink
=
1.0
/
12.0
;
//1.0/(qrand()%5+7.0);
setElementId
(
QString
(
move
.
player
()
==
X
?
QStringLiteral
(
"x%1"
)
:
QStringLiteral
(
"o%1"
))
.
arg
(
QString
::
number
(
qrand
()
%
5
+
1
)));
m_tick
=
20
;
...
...
gui/mark.h
View file @
c7fb6187
...
...
@@ -67,7 +67,7 @@ private:
Scene
*
m_scene
;
int
m_row
;
int
m_col
;
qreal
m_sizeShrink
,
m_fill
;
qreal
m_fill
;
int
m_tick
;
bool
m_animate
;
qreal
m_opacity
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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