From: gregor herrmann Date: Sun, 24 Jul 2011 14:12:00 +0000 (+0000) Subject: Shift date text up by icon/2 in order to re-center the text. More or less at least. X-Git-Tag: 0.5.3~10 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/c7da82890a810c35fc0ed4aec5d116c1b121c648?ds=sidebyside Shift date text up by icon/2 in order to re-center the text. More or less at least. --- diff --git a/src/gui/daynavigatorwidget.cpp b/src/gui/daynavigatorwidget.cpp index bf1f17a..42b2cfd 100644 --- a/src/gui/daynavigatorwidget.cpp +++ b/src/gui/daynavigatorwidget.cpp @@ -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();