diff options
| author | Jonathan Bauer | 2011-03-07 17:44:05 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-07 17:44:05 +0100 |
| commit | 84bd2b0925c8825b819b7b062d9f2a351f2e96b5 (patch) | |
| tree | eab941aa6ef3e52d4a2788a2c5f8b418fb4f5f26 /src/fbgui.cpp | |
| parent | webkitTest.html local loading of jQuery stuff (diff) | |
| download | fbgui-84bd2b0925c8825b819b7b062d9f2a351f2e96b5.tar.gz fbgui-84bd2b0925c8825b819b7b062d9f2a351f2e96b5.tar.xz fbgui-84bd2b0925c8825b819b7b062d9f2a351f2e96b5.zip | |
Reworked code structure
Diffstat (limited to 'src/fbgui.cpp')
| -rw-r--r-- | src/fbgui.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 8a03368..a9e3951 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -6,18 +6,20 @@ #include <QMap> QUrl baseURL; +bool debug; -void fbgui::startBrowser() +fbgui::fbgui(QApplication *parent) { - _fbb = new fbbrowser(); - QObject::connect(_fbb, SIGNAL(killApp()), this->parent(), SLOT(quit())); -} + /* Browser init. */ + fbbrowser* _fbb = new fbbrowser(); + setWindowFlags(Qt::SplashScreen); + showFullScreen(); + setCentralWidget(_fbb); + + /* Connect fbb with app for killing the app from browser. */ + QObject::connect(_fbb, SIGNAL(killApp()), parent, SLOT(quit())); + + + // JSO init -fbgui::fbgui() -{ - _fbb = NULL; -} -fbgui::~fbgui() -{ - delete _fbb; } |
