fixed: icons overlapped
authorpavelpa <pavelpa@localhost>
Tue, 19 Jan 2010 06:33:30 +0000 (06:33 +0000)
committerpavelpa <pavelpa@localhost>
Tue, 19 Jan 2010 06:33:30 +0000 (06:33 +0000)
src/mvc/delegate.cpp

index 306fc64..e545e3e 100644 (file)
@@ -150,7 +150,7 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, cons
         painter->drawText(drawPoint+QPoint(mControls[FavouriteControlOn]->image()->width()+2, option.rect.height()/2),
                 QString::number(numberOfAlarms(index)));
         // draw texts
-        drawPoint.setX(drawPoint.x() - SPACER -mControls[AlarmControlOn]->image()->width() - 20);
+        drawPoint.setX(drawPoint.x() - SPACER -mControls[AlarmControlOn]->image()->width() - 35);
         drawPoint.setY(drawPoint.y() + option.rect.height()/2);
         painter->drawText(drawPoint,QString("Events: ") + QString::number(index.model()->rowCount(index)));
     }