summaryrefslogtreecommitdiffstats
path: root/examples/animation
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-05-20 14:13:00 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-05-20 14:13:00 (GMT)
commitdcdd15156595dbc317732970e48efa32d32b256a (patch)
treebeff81bb0a4d2d17bdd581324310ae8877b5c544 /examples/animation
parent5a60fd1a0b39b9d366a524cc8c8576b417551e6d (diff)
downloadQt-dcdd15156595dbc317732970e48efa32d32b256a.zip
Qt-dcdd15156595dbc317732970e48efa32d32b256a.tar.gz
Qt-dcdd15156595dbc317732970e48efa32d32b256a.tar.bz2
fix compiler warnings
Diffstat (limited to 'examples/animation')
-rw-r--r--examples/animation/stickman/node.cpp4
-rw-r--r--examples/animation/stickman/stickman.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/animation/stickman/node.cpp b/examples/animation/stickman/node.cpp
index ed18108..9c485d9 100644
--- a/examples/animation/stickman/node.cpp
+++ b/examples/animation/stickman/node.cpp
@@ -75,7 +75,7 @@ QVariant Node::itemChange(GraphicsItemChange change, const QVariant &value)
return QGraphicsItem::itemChange(change, value);
}
-void Node::mousePressEvent(QGraphicsSceneMouseEvent *event)
+void Node::mousePressEvent(QGraphicsSceneMouseEvent *)
{
m_dragging = true;
}
@@ -86,7 +86,7 @@ void Node::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
setPos(mapToParent(event->pos()));
}
-void Node::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
+void Node::mouseReleaseEvent(QGraphicsSceneMouseEvent *)
{
m_dragging = false;
}
diff --git a/examples/animation/stickman/stickman.cpp b/examples/animation/stickman/stickman.cpp
index 5eb392f..e00ea41 100644
--- a/examples/animation/stickman/stickman.cpp
+++ b/examples/animation/stickman/stickman.cpp
@@ -178,7 +178,7 @@ Node *StickMan::node(int idx) const
return 0;
}
-void StickMan::timerEvent(QTimerEvent *e)
+void StickMan::timerEvent(QTimerEvent *)
{
update();
}