summaryrefslogtreecommitdiffstats
path: root/webkitTest/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'webkitTest/main.cpp')
-rw-r--r--webkitTest/main.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/webkitTest/main.cpp b/webkitTest/main.cpp
new file mode 100644
index 0000000..d6ab041
--- /dev/null
+++ b/webkitTest/main.cpp
@@ -0,0 +1,22 @@
+#include "webkittest.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
+ url = QUrl("http://132.230.4.3/webkitTest.html");
+
+ webkitTest *w = new webkitTest(0, url);
+ //w.setUrl(url);
+ w->show();
+
+ return a.exec();
+}