diff options
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(); } |