summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-10-30 19:07:58 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-10-30 19:07:58 +0100
commita01d13f45b6ccd3a64e7a2cf18996d9bf841d4d9 (patch)
tree86ec4446bc224ad9b12e2cf8067aa8f55c367ed4 /src/main.cpp
parentreKonq initial commit. Yeah! (diff)
downloadrekonq-a01d13f45b6ccd3a64e7a2cf18996d9bf841d4d9.tar.xz
QApplication --> KApplication
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ae4c2173..badfd296 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -18,11 +18,13 @@
 * ============================================================ */
+#include "browserapplication.h"
+
#include <KAboutData>
#include <KCmdLineArgs>
-#include "browserapplication.h"
+// really simple writing main files today..
int main(int argc, char **argv)
{
KAboutData aboutData(
@@ -42,13 +44,14 @@ int main(int argc, char **argv)
aboutData.setProgramIconName("application-internet");
KCmdLineArgs::init( argc, argv, &aboutData );
+
KCmdLineOptions options;
-
- //TODO make this work
options.add("+URL", ki18n("Location to open"));
KCmdLineArgs::addCmdLineOptions( options );
- BrowserApplication app(argc, argv);
+ KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+
+ BrowserApplication app(args, "reKonq");
if (!app.isTheOnlyBrowser())
return 0;
app.newMainWindow();