Implementation of about dialog using MMessageBox.
[medard] / src / mainwindow.cpp
index 0253c38..a410ce2 100644 (file)
@@ -48,10 +48,12 @@ MainWindow::MainWindow(QGraphicsItem *parent) : MApplicationPage(parent)
 
     m_forecastInitialDateLabel = new MLabel();
     m_forecastInitialDateLabel->setAlignment(Qt::AlignCenter);
+    m_forecastInitialDateLabel->setWordWrap(true);
 //    m_forecastInitialDateLabel->setDisabled(true);
 
     m_forecastDateLabel = new MLabel();
     m_forecastDateLabel->setAlignment(Qt::AlignCenter);
+    m_forecastDateLabel->setWordWrap(true);
 
     m_downloadRetryButton = new MButton(tr("Download again"));
     m_downloadRetryButton->setPreferredWidth(220);
@@ -406,7 +408,7 @@ void MainWindow::aboutMenuClicked()
 {
     AboutDialog *dialog = new AboutDialog();
 #ifdef Q_WS_MAEMO_6
-    dialog->appear(scene(), MSceneWindow::DestroyWhenDismissed);
+    dialog->appear(MSceneWindow::DestroyWhenDismissed);
 #else
     dialog->exec();
 #endif