diff options
| author | Jonathan Bauer | 2011-03-08 02:46:18 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-08 02:46:18 +0100 |
| commit | 2145855feffdaefbf71f8513fef7c220d66f501f (patch) | |
| tree | c6f3bd824305bde87aacdfe2a80708119fb728f2 /src/fbgui.cpp | |
| parent | fix? (diff) | |
| download | fbgui-2145855feffdaefbf71f8513fef7c220d66f501f.tar.gz fbgui-2145855feffdaefbf71f8513fef7c220d66f501f.tar.xz fbgui-2145855feffdaefbf71f8513fef7c220d66f501f.zip | |
compiling..
Diffstat (limited to 'src/fbgui.cpp')
| -rw-r--r-- | src/fbgui.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 0a6780d..821c05f 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -8,22 +8,15 @@ #include <QtWebKit> #include <QApplication> -QUrl baseURL; -QDir downloadDirectory; -bool debug; - fbgui::fbgui(QApplication *parent) { - _parent = parent; /* Browser init. */ QWebView* webView = new QWebView(this); webView->load(baseURL); - /* Connect fbb with app for killing the app from browser. */ - QObject::connect(jso, SIGNAL(signalQuitAll()), this, SLOT(quit())); /* Init JavaScript interface */ JSObject* jso = new JSObject(webView->page()->mainFrame()); - + QObject::connect(jso, SIGNAL(signalQuitAll()), this, SLOT(close())); QObject::connect(webView->page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), jso, SLOT(attachToDOM())); @@ -39,3 +32,4 @@ fbgui::fbgui(QApplication *parent) } void fbgui::quit(){ this->close(); +} |
