blob: 7f51a6f1495e73d5cf87f82498c8a30e0044e4ec (
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 "fbbrowser.h"
#include <QtGui>
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// Is this really needed, since we kill the app through the fbbrowser object?
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();
}
|