ToastFreeware
/
toast
/
confclerk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6f4f3d
)
Shift date text up by icon/2 in order to re-center the text. More or less at least.
author
gregor herrmann
<gregoa@debian.org>
Sun, 24 Jul 2011 14:12:00 +0000
(14:12 +0000)
committer
gregor herrmann
<gregoa@debian.org>
Sun, 24 Jul 2011 14:12:00 +0000
(14:12 +0000)
src/gui/daynavigatorwidget.cpp
patch
|
blob
|
history
diff --git
a/src/gui/daynavigatorwidget.cpp
b/src/gui/daynavigatorwidget.cpp
index bf1f17a60aff7b0d2d1ae290e4aad3b81856d04f..42b2cfd7bd82e0e5a451ac8658089bd4cda13402 100644
(file)
--- 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();