]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/main.cpp
Allow compiling Dolphin with KF5
[dolphin.git] / src / main.cpp
index cfaaa7480f526deda57d3413243ec7eda36b258d..2eada9aab173f66bcf5f5039909d5725608c74a2 100644 (file)
 
 #include "dolphinmainwindow.h"
 
-#include <KAboutData>
+#include <k4aboutdata.h>
 #include <KCmdLineArgs>
 #include <KLocale>
 #include <kmainwindow.h>
+#include <kdemacros.h>
+#include <kdeversion.h>
 #include <KDebug>
 
 extern "C"
 KDE_EXPORT int kdemain(int argc, char **argv)
 {
-    KAboutData about("dolphin", 0,
+    K4AboutData about("dolphin", 0,
                      ki18nc("@title", "Dolphin"),
-                     "2.1",
+                     KDE_VERSION_STRING,
                      ki18nc("@title", "File Manager"),
-                     KAboutData::License_GPL,
-                     ki18nc("@info:credit", "(C) 2006-2012 Peter Penz and Frank Reininghaus"));
+                     K4AboutData::License_GPL,
+                     ki18nc("@info:credit", "(C) 2006-2014 Peter Penz and Frank Reininghaus"));
     about.setHomepage("http://dolphin.kde.org");
     about.addAuthor(ki18nc("@info:credit", "Frank Reininghaus"),
                     ki18nc("@info:credit", "Maintainer (since 2012) and developer"),
@@ -50,6 +52,9 @@ KDE_EXPORT int kdemain(int argc, char **argv)
     about.addAuthor(ki18nc("@info:credit", "David Faure"),
                     ki18nc("@info:credit", "Developer"),
                     "faure@kde.org");
+    about.addAuthor(ki18nc("@info:credit", "Emmanuel Pescosta"),
+                    ki18nc("@info:credit", "Developer"),
+                    "emmanuelpescosta099@gmail.com");
     about.addAuthor(ki18nc("@info:credit", "Aaron J. Seigo"),
                     ki18nc("@info:credit", "Developer"),
                     "aseigo@kde.org");
@@ -82,11 +87,13 @@ KDE_EXPORT int kdemain(int argc, char **argv)
     options.add("+[Url]", ki18nc("@info:shell", "Document to open"));
     KCmdLineArgs::addCmdLineOptions(options);
 
-    DolphinApplication app;
-    if (app.isSessionRestored()) {
-        app.restoreSession();
+    {
+        DolphinApplication app;
+        if (app.isSessionRestored()) {
+            app.restoreSession();
+        }
+        app.exec(); // krazy:exclude=crashy
     }
-    app.exec(); // krazy:exclude=crashy
 
     return 0;
 }