Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KBounce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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:
v
irtual
void
resizeEvent
(
QResizeEvent
*
event
)
;
v
irtual
void
mouseReleaseEvent
(
QMouseEvent
*
event
)
;
void
focusOutEvent
(
QFocusEvent
*
event
);
v
oid
resizeEvent
(
QResizeEvent
*
event
)
Q_DECL_OVERRIDE
;
v
oid
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