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 bf1f17a60aff7b0d2d1ae290e4aad3b81856d04f..42b2cfd7bd82e0e5a451ac8658089bd4cda13402 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();