summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-06-18 15:35:03 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-06-18 15:35:03 (GMT)
commit106e7f2a19693d0a067131e45cb79abc6b8a2433 (patch)
tree86db74d4b0ceb5bbf9b6a3a10cbb693023561b18 /examples/graphicsview
parentfc0e74d5661da0a678a60082dae60d4564da94b0 (diff)
downloadQt-106e7f2a19693d0a067131e45cb79abc6b8a2433.zip
Qt-106e7f2a19693d0a067131e45cb79abc6b8a2433.tar.gz
Qt-106e7f2a19693d0a067131e45cb79abc6b8a2433.tar.bz2
Fix example compile and runtime warnings, webkit examples not built.
Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
Diffstat (limited to 'examples/graphicsview')
-rw-r--r--examples/graphicsview/dragdroprobot/coloritem.cpp2
-rw-r--r--examples/graphicsview/simpleanchorlayout/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/graphicsview/dragdroprobot/coloritem.cpp b/examples/graphicsview/dragdroprobot/coloritem.cpp
index b6113fd..327fa87 100644
--- a/examples/graphicsview/dragdroprobot/coloritem.cpp
+++ b/examples/graphicsview/dragdroprobot/coloritem.cpp
@@ -76,7 +76,7 @@ void ColorItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
//! [2]
//! [3]
-void ColorItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
+void ColorItem::mousePressEvent(QGraphicsSceneMouseEvent *)
{
setCursor(Qt::ClosedHandCursor);
}
diff --git a/examples/graphicsview/simpleanchorlayout/main.cpp b/examples/graphicsview/simpleanchorlayout/main.cpp
index 9cb4006..942cdc4 100644
--- a/examples/graphicsview/simpleanchorlayout/main.cpp
+++ b/examples/graphicsview/simpleanchorlayout/main.cpp
@@ -49,7 +49,7 @@ public:
{
}
- void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0)
+ void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget * = 0)
{
QFont font;
font.setPixelSize(0.75 * qMin(boundingRect().width(), boundingRect().height()));