diff options
author | Jonathan Bauer | 2011-03-04 21:05:12 +0100 |
---|---|---|
committer | Jonathan Bauer | 2011-03-04 21:05:12 +0100 |
commit | 9e5705b50b1187807e753888aebdbbb11b362bcb (patch) | |
tree | 33b803d07841411718cca8686b16216de8bd092b /src/fbgui.cpp | |
parent | Added javascript functionality for download manager.. (diff) | |
download | fbgui-9e5705b50b1187807e753888aebdbbb11b362bcb.tar.gz fbgui-9e5705b50b1187807e753888aebdbbb11b362bcb.tar.xz fbgui-9e5705b50b1187807e753888aebdbbb11b362bcb.zip |
Progress bar for downloads (using jQuery) fixed
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r-- | src/fbgui.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 05a3cd2..f3a77c1 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -1,11 +1,12 @@ +#include "fbgui.h" #include "fbbrowser.h" #include "DownloadManager.h" +#include "DMThread.h" #include <getopt.h> -#include <fbgui.h> #include <limits.h> #include <unistd.h> #include <QApplication> - +#include <QThread> void printUsage() { @@ -62,12 +63,14 @@ int main(int argc, char *argv[]) else //Default URL to load url = QUrl("http://132.230.4.3/webkitTest.html"); // Create a new Framebuffer-Browser object for displaying the given URL. - fbbrowser *fbb = new fbbrowser(url); + fbbrowser* fbb = new fbbrowser(url); + // Listen to the signalQuitAll() Signal to kill the app from within the browser. QObject::connect(fbb, SIGNAL(signalQuitAll()), &a, SLOT(quit())); + // Display the browser. fbb->show(); - // Exit the application. + // Execute the application. return a.exec(); } |