summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp43
1 files changed, 21 insertions, 22 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7963405d..0988b367 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -24,33 +24,32 @@
#include <KAboutData>
#include <KCmdLineArgs>
+static const char description[] =
+ I18N_NOOP("KDE Browser Webkit Based");
+
+static const char version[] = "0.0.2";
-// really simple writing main files today..
int main(int argc, char **argv)
{
- KAboutData aboutData(
- "rekonq",
- 0,
- ki18n("rekonq"),
- "0.0.1",
- ki18n("A KDE browser webkit based"),
- KAboutData::License_GPL,
- ki18n("Copyright (c) 2008 Andrea Diamantini"),
- KLocalizedString(),
- "http://www.adjam.org",
- "adjam7@gmail.com" // bug report mail
- );
+ KAboutData about( "rekonq",
+ 0,
+ ki18n("rekonq"),
+ version,
+ ki18n(description),
+ KAboutData::License_GPL,
+ ki18n("(C) 2008 Andrea Diamantini"),
+ KLocalizedString(),
+ "http://www.adjam.org",
+ "adjam7@gmail.com"
+ );
+
+ about.addAuthor( ki18n("Andrea Diamantini"),
+ KLocalizedString(),
+ "adjam7@gmail.com"
+ );
- aboutData.addAuthor(
- ki18n("Andrea Diamantini"),
- ki18n("rekonq author"),
- "adjam7@gmail.com"
- );
-
- aboutData.setProgramIconName("applications-internet");
+ KCmdLineArgs::init(argc, argv, &about);
- KCmdLineArgs::init( argc, argv, &aboutData );
-
KCmdLineOptions options;
options.add( "+URL" , ki18n("Location to open") );
KCmdLineArgs::addCmdLineOptions( options );