X-Git-Url: http://git.maemo.org/git/?p=medard;a=blobdiff_plain;f=src%2Faboutdialog.cpp;h=99c7c1980216cad3e95f2ab18a348c9098c0bb28;hp=e383f5fcfe7a865e7824c1ef7f985ff937802eb7;hb=c767e098f3300373c78f6f91a0eb2092ad84fb44;hpb=05e16670e01ad13710c3198091a3f2be05f62dd5 diff --git a/src/aboutdialog.cpp b/src/aboutdialog.cpp index e383f5f..99c7c19 100644 --- a/src/aboutdialog.cpp +++ b/src/aboutdialog.cpp @@ -26,36 +26,21 @@ #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); + Q_UNUSED(parent); - MLabel *application = new MLabel(); - application->setText("Medard 0.2"); - application->setStyleName ("CommonHeader"); - application->setAlignment(Qt::AlignCenter); - layout->addItem(application); + setObjectName("messageBox"); - MLabel *applicationCopyright = new MLabel(); - applicationCopyright->setText(tr("Copyright(c) 2011 Roman Moravcik")); - applicationCopyright->setAlignment(Qt::AlignCenter); - layout->addItem(applicationCopyright); - - MLabel *weatherDataCopyright = new MLabel(); - weatherDataCopyright->setWordWrap(true); - 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\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)