Replaced "130" by s.width() when centering the date.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 13 Jul 2011 18:33:08 +0000 (18:33 +0000)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 13 Jul 2011 18:33:08 +0000 (18:33 +0000)
src/gui/daynavigatorwidget.cpp

index 0f416f2..9424ef1 100644 (file)
@@ -117,7 +117,7 @@ void DayNavigatorWidget::paintEvent(QPaintEvent *aEvent)
     QRect s = mFontMetrics->boundingRect(selectedDateStr);
     QPoint p = QPoint(
             r.x() + r.width()/2 - s.height()/2 - mFontMetrics->descent(),
-            - 130
+            - s.width()
             );
 
     painter.translate(r.width()/2, r.height()/2);