summaryrefslogtreecommitdiffstats
path: root/fbbrowser/main.cpp
diff options
context:
space:
mode:
authorNiklas Goby2011-01-12 12:41:02 +0100
committerNiklas Goby2011-01-12 12:41:02 +0100
commitf0a95477f87fd121d73b20914121311a343848f7 (patch)
tree2e98dca3814a79c281d65f2f1634f8493fde6263 /fbbrowser/main.cpp
parentder bisherige stand der dinge (diff)
downloadfbgui-f0a95477f87fd121d73b20914121311a343848f7.tar.gz
fbgui-f0a95477f87fd121d73b20914121311a343848f7.tar.xz
fbgui-f0a95477f87fd121d73b20914121311a343848f7.zip
neues Projekt in dem die QWidget klasse durch eine QMainWindow classe ersetzt
wurde. Name des neuen Projektes: fbbrowser Leider scheint das Beenden des Programms immer noch nicht richtig zu funktionieren
Diffstat (limited to 'fbbrowser/main.cpp')
-rw-r--r--fbbrowser/main.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/fbbrowser/main.cpp b/fbbrowser/main.cpp
new file mode 100644
index 0000000..a95626b
--- /dev/null
+++ b/fbbrowser/main.cpp
@@ -0,0 +1,20 @@
+#include "fbbrowser.h"
+
+#include <QtGui>
+#include <QApplication>
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+ a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
+
+ QUrl url;
+ if (argc > 1)
+ url = QUrl(argv[1]);
+ else //Default
+ url = QUrl("http://132.230.4.3/webkitTest.html");
+
+ fbbrowser *w = new fbbrowser(url);
+ w->show();
+ return a.exec();
+}