Shift date text up by icon/2 in order to re-center the text. More or less at least.
[toast/confclerk.git] / 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();