Shift date text up by icon/2 in order to re-center the text. More or less at least.
authorgregor herrmann <gregoa@debian.org>
Sun, 24 Jul 2011 14:12:00 +0000 (14:12 +0000)
committergregor herrmann <gregoa@debian.org>
Sun, 24 Jul 2011 14:12:00 +0000 (14:12 +0000)
src/gui/daynavigatorwidget.cpp

index bf1f17a..42b2cfd 100644 (file)
@@ -119,7 +119,7 @@ void DayNavigatorWidget::paintEvent(QPaintEvent *aEvent)
     QString selectedDateStr = mCurDate.toString("dddd\nyyyy-MM-dd");
     QPainter painter(this);
     painter.save();
-    QRect q(y()-height(), x(), height(), width());
+    QRect q(y()-height()+16, x(), height(), width()); // today icon size = 32x32
     painter.rotate(270);
     painter.drawText(q, Qt::AlignCenter, selectedDateStr);
     painter.restore();