aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/chatMsgGraphicsItem.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-09-13 10:48:14 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-09-13 10:48:14 +0200
commite63fabec07872984dec1ed8f2e9661447b686768 (patch)
tree2becad06f745a1f704f9606f2399cb500c638c32 /examples/GuiClient/chatMsgGraphicsItem.cpp
parenta7337a5f8b5ccad1dd526fbb69b6564087f7bd7f (diff)
downloadqxmpp-e63fabec07872984dec1ed8f2e9661447b686768.tar.gz
fix compiler warnings
Diffstat (limited to 'examples/GuiClient/chatMsgGraphicsItem.cpp')
-rw-r--r--examples/GuiClient/chatMsgGraphicsItem.cpp9
1 files changed, 5 insertions, 4 deletions
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;