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
KBounce
Commits
66e06ff4
Commit
66e06ff4
authored
Jun 01, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Q_DECLARE_OVERRIDE
parent
27e646f1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
backgroundselector.h
backgroundselector.h
+1
-1
board.h
board.h
+2
-2
gamewidget.h
gamewidget.h
+4
-4
mainwindow.h
mainwindow.h
+2
-2
No files found.
backgroundselector.h
View file @
66e06ff4
...
...
@@ -40,7 +40,7 @@ class BackgroundSelector : public QWidget {
void
useRandomBackgroundPicturesChanged
(
bool
state
);
void
previewBackgroundPicture
();
protected:
void
changeEvent
(
QEvent
*
e
);
void
changeEvent
(
QEvent
*
e
)
Q_DECL_OVERRIDE
;
void
enableSettings
(
bool
enable
=
true
);
private:
Ui
::
KBounceBackgroundSelector
*
ui
;
...
...
board.h
View file @
66e06ff4
...
...
@@ -47,7 +47,7 @@ class KBounceBoard: public QGraphicsObject
QPixmap
applyWallsOn
(
QPixmap
background
)
const
;
void
resize
(
QSize
&
size
);
void
paint
(
QPainter
*
,
const
QStyleOptionGraphicsItem
*
,
QWidget
*
)
{}
void
paint
(
QPainter
*
,
const
QStyleOptionGraphicsItem
*
,
QWidget
*
)
Q_DECL_OVERRIDE
{}
void
newLevel
(
int
level
);
void
setPaused
(
bool
);
...
...
@@ -62,7 +62,7 @@ class KBounceBoard: public QGraphicsObject
void
checkCollisions
();
QPoint
mapPosition
(
const
QPointF
&
pos
)
const
;
QRectF
boundingRect
()
const
;
QRectF
boundingRect
()
const
Q_DECL_OVERRIDE
;
void
setBallVelocity
(
qreal
velocity
);
void
setWallVelocity
(
qreal
velocity
);
...
...
gamewidget.h
View file @
66e06ff4
...
...
@@ -48,7 +48,7 @@ class KBounceGameWidget : public QGraphicsView
KBounceGameWidget
::
State
state
()
const
{
return
m_state
;
}
KBounceRenderer
*
renderer
()
{
return
&
m_renderer
;
}
QSize
minimumSizeHint
()
const
;
QSize
minimumSizeHint
()
const
Q_DECL_OVERRIDE
;
public
slots
:
void
closeGame
();
...
...
@@ -74,9 +74,9 @@ class KBounceGameWidget : public QGraphicsView
void
tick
();
protected:
virtual
void
resizeEvent
(
QResizeEvent
*
event
);
virtual
void
mouseReleaseEvent
(
QMouseEvent
*
event
);
void
focusOutEvent
(
QFocusEvent
*
event
);
void
resizeEvent
(
QResizeEvent
*
event
)
Q_DECL_OVERRIDE
;
void
mouseReleaseEvent
(
QMouseEvent
*
event
)
Q_DECL_OVERRIDE
;
void
focusOutEvent
(
QFocusEvent
*
event
)
Q_DECL_OVERRIDE
;
void
closeLevel
();
void
newLevel
();
void
updateCursor
();
...
...
mainwindow.h
View file @
66e06ff4
...
...
@@ -58,8 +58,8 @@ class KBounceMainWindow : public KXmlGuiWindow
void
initXMLUI
();
void
highscore
();
void
focusOutEvent
(
QFocusEvent
*
);
void
focusInEvent
(
QFocusEvent
*
);
void
focusOutEvent
(
QFocusEvent
*
)
Q_DECL_OVERRIDE
;
void
focusInEvent
(
QFocusEvent
*
)
Q_DECL_OVERRIDE
;
KBounceGameWidget
*
m_gameWidget
;
...
...
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