summaryrefslogtreecommitdiffstats
path: root/webkitTest/main.cpp
blob: d6ab041951cfb2a63fe2016a7548d6a3cf41931d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
}