blob: e0210f58c2cc81acd188d570d594e6e6a9a40735 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "fbbrowser.h"
#include <QtGui>
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QObject::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 *fbb = new fbbrowser(url);
QObject::connect(fbb, SIGNAL(signalQuitAll()), &a, SLOT(quit()));
fbb->show();
return a.exec();
}
|