added very simple html page.
[medard] / src / forecastwidget.cpp
index e733544..51d9bb8 100644 (file)
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#ifdef MEEGO_EDITION_HARMATTAN
+#include <MLabel>
+#endif
+
 #include <QtGui>
 
 #include "forecastwidget.h"
 
-#ifdef Q_WS_MAEMO_6
+#ifdef MEEGO_EDITION_HARMATTAN
 ForecastWidget::ForecastWidget(QGraphicsWidget *parent) : QGraphicsWidget(parent)
 #else
 ForecastWidget::ForecastWidget(QWidget *parent) : QWidget(parent)
@@ -45,16 +49,15 @@ void ForecastWidget::clearImage(bool error)
     update();
 }
 
-#ifdef Q_WS_MAEMO_6
+#ifdef MEEGO_EDITION_HARMATTAN
 void ForecastWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 {
     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);