#include "aboutdialog.h"
-AboutDialog::AboutDialog(QMainWindow *parent) : QMainWindow(parent)
+AboutDialog::AboutDialog(QDialog *parent) : QDialog(parent)
{
+ setWindowTitle(tr("About"));
+
+ QVBoxLayout *layout = new QVBoxLayout();
+ layout->setMargin(16);
+ layout->setSpacing(16);
+ setLayout(layout);
+
+ QLabel *application = new QLabel();
+ QFont font = application->font();
+ font.setBold(true);
+ font.setPointSize(32);
+ application->setFont(font);
+ application->setText("Medard 0.1");
+ application->setAlignment(Qt::AlignCenter);
+ layout->addWidget(application);
+
+ QLabel *applicationCopyright = new QLabel();
+ applicationCopyright->setText(tr("Copyright(c) 2011 Roman Moravcik"));
+ applicationCopyright->setAlignment(Qt::AlignCenter);
+ layout->addWidget(applicationCopyright);
+
+ QLabel *weatherDataCopyright = new QLabel();
+ 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 © CAMx: EVNIRON Corp., USA"));
+ layout->addWidget(weatherDataCopyright);
+
}
#ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H
-#include <QMainWindow>
+#include <QDialog>
-class AboutDialog : public QMainWindow
+class AboutDialog : public QDialog
{
Q_OBJECT
public:
- AboutDialog(QMainWindow *parent = 0);
+ AboutDialog(QDialog *parent = 0);
};
#endif // ABOUTDIALOG_H