From e63fabec07872984dec1ed8f2e9661447b686768 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 13 Sep 2012 10:48:14 +0200 Subject: fix compiler warnings --- examples/GuiClient/chatMsgGraphicsItem.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'examples/GuiClient/chatMsgGraphicsItem.cpp') diff --git a/examples/GuiClient/chatMsgGraphicsItem.cpp b/examples/GuiClient/chatMsgGraphicsItem.cpp index efa471a0..2299cfb6 100644 --- a/examples/GuiClient/chatMsgGraphicsItem.cpp +++ b/examples/GuiClient/chatMsgGraphicsItem.cpp @@ -67,9 +67,7 @@ QLinearGradient darken(const QLinearGradient &gradient) return g; } -void drawPath(QPainter *p, const QPainterPath &path, - const QColor &col, const QString &name, int textWidth, - bool dark = false) +static void drawPath(QPainter *p, const QPainterPath &path, const QColor &col, bool dark = false) { const QRectF pathRect = path.boundingRect(); @@ -129,8 +127,11 @@ chatMsgGraphicsItem::chatMsgGraphicsItem(QGraphicsItem * parent):QGraphicsPathIt void chatMsgGraphicsItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { + Q_UNUSED(option); + Q_UNUSED(widget); + painter->setRenderHint(QPainter::Antialiasing); - drawPath(painter, path(), m_color, getText(), getTextWidth()); + drawPath(painter, path(), m_color); // int spike_x = m_spikeWidth; // int spike_y = m_spikeHeight; -- cgit v1.2.3