From 9e5705b50b1187807e753888aebdbbb11b362bcb Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 4 Mar 2011 21:05:12 +0100 Subject: Progress bar for downloads (using jQuery) fixed --- src/fbgui.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/fbgui.cpp') 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 -#include #include #include #include - +#include 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(); } -- cgit v1.2.3-55-g7522