Added wrapping of labels in about dialog.
authorRoman Moravcik <roman.moravcik@gmail.com>
Tue, 28 Jun 2011 15:57:57 +0000 (17:57 +0200)
committerRoman Moravcik <roman.moravcik@gmail.com>
Tue, 28 Jun 2011 15:57:57 +0000 (17:57 +0200)
src/aboutdialog.cpp

index 2231bd0..e383f5f 100644 (file)
@@ -36,16 +36,18 @@ AboutDialog::AboutDialog(QGraphicsItem *parent) : MApplicationPage(parent)
     centralWidget()->setLayout(layout);
 
     MLabel *application = new MLabel();
-    application->setText("Medard 0.1");
-//    application->setAlignment(Qt::AlignCenter);
+    application->setText("Medard 0.2");
+    application->setStyleName ("CommonHeader");
+    application->setAlignment(Qt::AlignCenter);
     layout->addItem(application);
 
     MLabel *applicationCopyright = new MLabel();
     applicationCopyright->setText(tr("Copyright(c) 2011 Roman Moravcik"));
-//    applicationCopyright->setAlignment(Qt::AlignCenter);
+    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"