summaryrefslogtreecommitdiffstats
path: root/fbbrowser/main.cpp
diff options
context:
space:
mode:
authorNiklas Goby2011-01-14 14:21:40 +0100
committerNiklas Goby2011-01-14 14:21:40 +0100
commitad43387cfa151c24ec5ddb9beaa4bd55de3813fc (patch)
tree3b334c976c64cf22c1bed99bf3f7ecaf130666f0 /fbbrowser/main.cpp
parentqrc missing .. (diff)
parentmore commentaries.... (diff)
downloadfbgui-ad43387cfa151c24ec5ddb9beaa4bd55de3813fc.tar.gz
fbgui-ad43387cfa151c24ec5ddb9beaa4bd55de3813fc.tar.xz
fbgui-ad43387cfa151c24ec5ddb9beaa4bd55de3813fc.zip
Merge branch 'master' of git.openslx.org:lsfks/master-teamprojekt/fbgui
Diffstat (limited to 'fbbrowser/main.cpp')
-rw-r--r--fbbrowser/main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/fbbrowser/main.cpp b/fbbrowser/main.cpp
index e0210f5..fc333fb 100644
--- a/fbbrowser/main.cpp
+++ b/fbbrowser/main.cpp
@@ -5,17 +5,23 @@
int main(int argc, char *argv[])
{
+ // This is the main object of a QT Application.
QApplication a(argc, 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();
}