diff options
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/Whiteboard/FreehandLineItem.cpp | 4 | ||||
-rw-r--r-- | Swift/QtUI/Whiteboard/FreehandLineItem.h | 4 | ||||
-rw-r--r-- | Swift/QtUI/Whiteboard/GView.cpp | 2 | ||||
-rw-r--r-- | Swift/QtUI/Whiteboard/GView.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/Swift/QtUI/Whiteboard/FreehandLineItem.cpp b/Swift/QtUI/Whiteboard/FreehandLineItem.cpp index 92c4005..9beb47b 100644 --- a/Swift/QtUI/Whiteboard/FreehandLineItem.cpp +++ b/Swift/QtUI/Whiteboard/FreehandLineItem.cpp @@ -16,7 +16,7 @@ namespace Swift { return boundRect; } - void FreehandLineItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) + void FreehandLineItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* /*option*/, QWidget* /*widget*/) { painter->setPen(pen_); if (points_.size() > 0) { @@ -67,7 +67,7 @@ namespace Swift { update(rect); } - bool FreehandLineItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const + bool FreehandLineItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode /*mode*/) const { QVector<QPointF>::const_iterator it; QSizeF size(1,1); diff --git a/Swift/QtUI/Whiteboard/FreehandLineItem.h b/Swift/QtUI/Whiteboard/FreehandLineItem.h index b0be36b..f3c6607 100644 --- a/Swift/QtUI/Whiteboard/FreehandLineItem.h +++ b/Swift/QtUI/Whiteboard/FreehandLineItem.h @@ -18,10 +18,10 @@ namespace Swift { enum {Type = UserType + 1}; FreehandLineItem(QGraphicsItem* parent = 0); QRectF boundingRect() const; - void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + void paint(QPainter* painter, const QStyleOptionGraphicsItem* /*option*/, QWidget* /*widget*/ = 0); void setStartPoint(QPointF point); void lineTo(QPointF point); - bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode /*mode*/ = Qt::IntersectsItemShape) const; void setPen(const QPen& pen); QPen pen() const; const QVector<QPointF>& points() const; diff --git a/Swift/QtUI/Whiteboard/GView.cpp b/Swift/QtUI/Whiteboard/GView.cpp index eead3c7..e82d193 100644 --- a/Swift/QtUI/Whiteboard/GView.cpp +++ b/Swift/QtUI/Whiteboard/GView.cpp @@ -346,7 +346,7 @@ namespace Swift { } } - void GView::mouseReleaseEvent(QMouseEvent *event) + void GView::mouseReleaseEvent(QMouseEvent* /*event*/) { mousePressed = false; QGraphicsPolygonItem* polygon = dynamic_cast<QGraphicsPolygonItem*>(lastItem); diff --git a/Swift/QtUI/Whiteboard/GView.h b/Swift/QtUI/Whiteboard/GView.h index e18cb74..786c1f3 100644 --- a/Swift/QtUI/Whiteboard/GView.h +++ b/Swift/QtUI/Whiteboard/GView.h @@ -31,7 +31,7 @@ namespace Swift { void setMode(Mode mode); void mouseMoveEvent(QMouseEvent* event); void mousePressEvent(QMouseEvent* event); - void mouseReleaseEvent(QMouseEvent* event); + void mouseReleaseEvent(QMouseEvent* /*event*/); void addItem(QGraphicsItem* item, QString id, int pos); void setIDPrefix(QString prefix); void clear(); |