Set font style of forecast widget.
[medard] / src / forecastwidget.cpp
index e733544..b65e769 100644 (file)
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#ifdef Q_WS_MAEMO_6
+#include <MLabel>
+#endif
+
 #include <QtGui>
 
 #include "forecastwidget.h"
@@ -51,10 +55,9 @@ void ForecastWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *op
     Q_UNUSED(widget);
     Q_UNUSED(option);
 
-    painter->setRenderHint(QPainter::Antialiasing);
-
     QRect widgetArea(rect().x(), rect().y(), rect().width(), 369);
 
+    painter->setFont(MLabel().font());
     painter->setPen(QColor(0, 0, 0));
     painter->setBrush(QColor(255, 255, 255));
     painter->drawRect(widgetArea);