blob: 4ae91740c8c1d9371d88bab9c992e0d0e9c6b0f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "fbgui.h"
#include "fbbrowser.h"
#include "DownloadManager.h"
#include <iostream>
#include <QUrl>
fbgui::fbgui(QApplication *parent)
{
// Test if parent is accessible?
qDebug() << "Still alive?";
qDebug() << "Parent name: " << parent->objectName();
/* Create the browser and connect to quit() */
fbb = new fbbrowser(QUrl("http://132.230.4.3/webkitTest.html"));
QObject::connect(fbb, SIGNAL(killApp()), parent, SLOT(quit()));
fbb->show();
}
fbgui::~fbgui()
{
delete fbb;
}
|