About text updated.
authorMikko Keinänen <mikko.keinanen@gmail.com>
Mon, 8 Nov 2010 20:35:03 +0000 (22:35 +0200)
committerMikko Keinänen <mikko.keinanen@gmail.com>
Mon, 8 Nov 2010 20:35:03 +0000 (22:35 +0200)
src/mainwindow.cpp
src/mainwindow.h

index b21fbd4..345c2c9 100644 (file)
 #include "db/databasemanager.h"
 #include "db/dbconfig.h"
 
+QString MainWindow::aboutStr = tr(
+        "<h2>EmuFront</h2>"
+        "<p>&copy; 2010 Mikko Keinänen</p>"
+        "<p>mikko.keinanen@gmail.com</p>"
+        "<p>EmuFront is free software: you can redistribute it and/or modify "
+        "it under the terms of the GNU General Public License version 2 as published by "
+        "the Free Software Foundation.</p>"
+);
+
+QString MainWindow::aboutTitle = tr("About EmuFront");
+
 MainWindow::MainWindow()
 {
     setWindowTitle("EmuFront");
@@ -216,11 +227,5 @@ void MainWindow::updateData()
 
 void MainWindow::about()
 {
-    QMessageBox::about(this, tr("About EmuFront"),
-        "<h2>EmuFront</h2>"
-        "<p>&copy; 2010 Mikko Keinänen</p>"
-        "<p>EmuFront is free software: you can redistribute it and/or modify "
-        "it under the terms of the GNU General Public License version 2 as published by "
-        "the Free Software Foundation.</p>"
-        );
+    QMessageBox::about(this, aboutTitle, aboutStr );
 }
index eca5089..1b9ca0b 100644 (file)
@@ -56,7 +56,9 @@ private slots:
     void about();
 
 private:
-       void createActions();
+    static QString aboutStr;
+    static QString aboutTitle;
+    void createActions();
        void createMenus();
        void createStatusBar();
        void readSettings();