Fixed debian packaging.
[medard] / src / aboutdialog.cpp
index 2231bd0..6f71c3d 100644 (file)
 #include "aboutdialog.h"
 
 #ifdef Q_WS_MAEMO_6
-AboutDialog::AboutDialog(QGraphicsItem *parent) : MApplicationPage(parent)
+AboutDialog::AboutDialog(QGraphicsItem *parent) : MMessageBox("", M::OkButton)
 {
-    setAttribute(Qt::WA_LockPortraitOrientation, true);
-    setWindowTitle(tr("About"));
-    setPannable(false);
-
-    QGraphicsLinearLayout *layout = new QGraphicsLinearLayout(Qt::Vertical);
-    centralWidget()->setLayout(layout);
-
-    MLabel *application = new MLabel();
-    application->setText("Medard 0.1");
-//    application->setAlignment(Qt::AlignCenter);
-    layout->addItem(application);
+    Q_UNUSED(parent);
 
-    MLabel *applicationCopyright = new MLabel();
-    applicationCopyright->setText(tr("Copyright(c) 2011 Roman Moravcik"));
-//    applicationCopyright->setAlignment(Qt::AlignCenter);
-    layout->addItem(applicationCopyright);
+    setObjectName("messageBox");
 
-    MLabel *weatherDataCopyright = new MLabel();
-    weatherDataCopyright->setText(tr("\n"
-                                  "Weather data:\n"
-                                  "Project MEDARD, Institute of Computer Science,\n"
-                                  "Academy of Sciences of the Czech Republic, Prague\n"
-                                  "\n"
-                                  "Copyright(c) Institute of Computer Science AS CR 2003-2009.\n"
-                                  "MM5: PSU/NCAR, USA (c) CAMx: EVNIRON Corp., USA"));
-    layout->addItem(weatherDataCopyright);
+    setTitle("Medard 0.2.0\n");
+    setText(tr("Copyright(c) 2011 Roman Moravcik") +
+            tr("\n"
+               "Weather data:\n"
+               "Project MEDARD, Institute of Computer Science,\n"
+               "Academy of Sciences of the Czech Republic, Prague\n"
+               "\n"
+               "Copyright(c) Institute of Computer Science AS CR 2003-2009.\n"
+               "MM5: PSU/NCAR, USA (c) CAMx: EVNIRON Corp., USA"));
 }
 #else
 AboutDialog::AboutDialog(QDialog *parent) : QDialog(parent)