Implementation of about dialog using MMessageBox.
[medard] / src / aboutdialog.cpp
index 042ae30..99c7c19 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 "aboutdialog.h"
 
+#ifdef Q_WS_MAEMO_6
+AboutDialog::AboutDialog(QGraphicsItem *parent) : MMessageBox("", M::OkButton)
+{
+    Q_UNUSED(parent);
+
+    setObjectName("messageBox");
+
+    setTitle("Medard 0.2\n");
+    setText(tr("Copyright(c) 2011 Roman Moravcik\n"
+               "\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)
 {
     setWindowTitle(tr("About"));
@@ -51,7 +73,8 @@ AboutDialog::AboutDialog(QDialog *parent) : QDialog(parent)
                                   "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 © CAMx: EVNIRON Corp., USA"));
+                                  "MM5: PSU/NCAR, USA (c) CAMx: EVNIRON Corp., USA"));
     layout->addWidget(weatherDataCopyright);
 
 }
+#endif