diff options
| author | Jonathan Bauer | 2011-01-13 15:36:53 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-01-13 15:36:53 +0100 |
| commit | 3a94024664a2ac3198b2cc3a99ea769db228c0ab (patch) | |
| tree | 04988da7835deb4fdd43b63cb11ace45107ebb46 | |
| parent | test commit (diff) | |
| download | fbgui-3a94024664a2ac3198b2cc3a99ea769db228c0ab.tar.gz fbgui-3a94024664a2ac3198b2cc3a99ea769db228c0ab.tar.xz fbgui-3a94024664a2ac3198b2cc3a99ea769db228c0ab.zip | |
einige kommentare hingefügt...
| -rw-r--r-- | fbbrowser/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fbbrowser/main.cpp b/fbbrowser/main.cpp index 7f51a6f..aa6da2e 100644 --- a/fbbrowser/main.cpp +++ b/fbbrowser/main.cpp @@ -9,14 +9,18 @@ int main(int argc, char *argv[]) // Is this really needed, since we kill the app through the fbbrowser object? QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); + // This part reads the URL to load from the arguments given through the commandline. QUrl url; if (argc > 1) url = QUrl(argv[1]); - else //Default + 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); + // 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. return a.exec(); } |
