From 7b8772e6f6cff43e288487d58f5bb65dc2fb1a54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juan=20Gonz=C3=A1lez?= Date: Wed, 16 Jan 2008 14:21:02 +0100 Subject: [PATCH] Remove unused variables (or q_unuse them) --- RFIDLoginManager/passworditem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RFIDLoginManager/passworditem.cpp b/RFIDLoginManager/passworditem.cpp index 5ec45bf..9cea21f 100644 --- a/RFIDLoginManager/passworditem.cpp +++ b/RFIDLoginManager/passworditem.cpp @@ -33,7 +33,8 @@ QRectF PasswordItem::boundingRect() const void PasswordItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { - //(-(m_passwordLength+1)*CHAR_WIDTH/2,-CHAR_WIDTH/2); + Q_UNUSED(option) + Q_UNUSED(widget) QPainterPath path; path.addRoundRect(0,0,(m_passwordLength+1)*CHAR_WIDTH,2*CHAR_WIDTH,25,25); @@ -47,7 +48,6 @@ void PasswordItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* opti brush.setColorAt(0,QColor::fromRgb(150,0,200)); brush.setColorAt(1,QColor::fromRgb(0,0,100,50)); - double x0,y0,x1,y1; for(int i = 0; i < m_passwordLength; i++) { brush.setStart(i*CHAR_WIDTH+CHAR_WIDTH/2, CHAR_WIDTH/2); -- 2.11.4.GIT