[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeplasma-addons/applets/rememberthemilk
From: Andrew Stromme <astromme () chatonka ! com>
Date: 2009-05-22 22:09:25
Message-ID: 1243030165.260097.26644.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 971607 by astromme:
Minor painting changes to improve task layout
M +5 -5 taskitemdelegate.cpp
--- trunk/KDE/kdeplasma-addons/applets/rememberthemilk/taskitemdelegate.cpp \
#971606:971607 @@ -34,9 +34,9 @@
#include <KDebug>
-const qreal TaskItemDelegate::MARGIN = 2.0;
+const qreal TaskItemDelegate::MARGIN = 1.0;
const qreal TaskItemDelegate::MARGINH = 6.0;
-const qreal TaskItemDelegate::COLORTAB = MARGIN*3;
+const qreal TaskItemDelegate::COLORTAB = MARGIN*6;
// These colors are hardcoded because they represent priorities and need to be the \
same for visual recognition purposes. const QColor TaskItemDelegate::priority1 = \
QColor(255, 123, 0); // reddish-orange @@ -96,10 +96,10 @@
gradient.setColorAt((qreal)(1.3*fm.width(dueString)+2*MARGIN)/rect.width(), \
Qt::transparent); painter->setBrush(Qt::NoBrush);
painter->setPen(QPen(QBrush(gradient), 1));
- painter->drawLine(rect.bottomLeft(), rect.bottomRight());
+ painter->drawLine(rect.bottomLeft()+QPoint(0, -MARGIN), \
rect.bottomRight()+QPoint(0, -MARGIN));
painter->setPen(Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor));
- painter->drawText(rect.bottomLeft()+QPoint(MARGIN, -MARGIN) ,dueString);
+ painter->drawText(rect.bottomLeft()+QPoint(MARGIN, -2*MARGIN) ,dueString);
painter->restore();
}
@@ -120,7 +120,7 @@
QString priority = index.data(Qt::DisplayRole).toString();
painter->setPen(Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor));
painter->setBrush(Qt::NoBrush);
- painter->drawText(rect.bottomLeft()+QPoint(MARGIN, -MARGIN) ,priority);
+ painter->drawText(rect.bottomLeft()+QPoint(MARGIN, -2*MARGIN) ,priority);
painter->restore();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic