About dialog implementation
authorTorste Aikio <zokier@zokier.laptop>
Tue, 1 Jun 2010 06:32:54 +0000 (09:32 +0300)
committerTorste Aikio <zokier@zokier.laptop>
Tue, 1 Jun 2010 06:32:54 +0000 (09:32 +0300)
src/aboutdlg.cpp
src/aboutdlg.h

index 774ce89..f629371 100644 (file)
@@ -1,11 +1,16 @@
 #include "aboutdlg.h"
 
+#include <QVBoxLayout>
+#include <QString>
+#include <QLabel>
+
 AboutDlg::AboutDlg(QWidget *parent)
     : QDialog(parent)
 {
-}
-
-AboutDlg::~AboutDlg()
-{
+    QVBoxLayout *layout = new QVBoxLayout(this);
+    layout->addWidget(new QLabel("Irreco Widget", this));
+    layout->addWidget(new QLabel(tr("Authors:"), this));
+    layout->addWidget(new QLabel(QString::fromUtf8("Torste Aikio, Jari Järvi, Joonas Partanen"), this));
+    this->setLayout(layout);
 }
 
index 9483751..0ff7305 100644 (file)
@@ -10,7 +10,6 @@ class AboutDlg : public QDialog
     Q_OBJECT
 public:
     AboutDlg(QWidget *parent);
-    ~AboutDlg();
 };
 
 #endif