Added about dialog and missing translations. Fixed repainting problen in detail view.
[jenirok] / src / gui / aboutdialog.cpp
diff --git a/src/gui/aboutdialog.cpp b/src/gui/aboutdialog.cpp
new file mode 100644 (file)
index 0000000..e7eb716
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * This file is part of Jenirok.
+ *
+ * Jenirok is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Jenirok is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Jenirok.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include <QtGui/QHBoxLayout>
+#include <QtGui/QVBoxLayout>
+#include <QtGui/QLabel>
+#include <QtGui/QPixmap>
+#include "aboutdialog.h"
+
+AboutDialog::AboutDialog(QWidget* parent): QDialog(parent)
+{
+       setWindowTitle(tr("About"));
+
+       QHBoxLayout* mainLayout = new QHBoxLayout();
+       QPixmap pixmap(":/icons/icon.png");
+       QLabel* image = new QLabel;
+       image->setPixmap(pixmap);
+       mainLayout->addWidget(image, 0, Qt::AlignLeft);
+       mainLayout->addSpacing(20);
+       QLabel* text = new QLabel("<font size='4'><b>Jenirok</b></font><br>(c) 2010 Jesse Hakanen<br><a href='http://jenirok.garage.maemo.org'>http://jenirok.garage.maemo.org</a>");
+       mainLayout->addWidget(text, 10, Qt::AlignLeft);
+
+       setLayout(mainLayout);
+}