diff --git a/src/qbrowserlib/qbrowserlib_de.ts b/src/qbrowserlib/qbrowserlib_de.ts
index 2687208..0d74ea6 100644
--- a/src/qbrowserlib/qbrowserlib_de.ts
+++ b/src/qbrowserlib/qbrowserlib_de.ts
@@ -692,4 +692,13 @@ Specify full path to executable program
+
+ qbrowserlib::SwissWebWidget
+
+
+
+ name of the browser's toolbar
+
+
+
diff --git a/src/qbrowserlib/qbrowserlib_en.ts b/src/qbrowserlib/qbrowserlib_en.ts
index e9f3ce9..fd8ea60 100644
--- a/src/qbrowserlib/qbrowserlib_en.ts
+++ b/src/qbrowserlib/qbrowserlib_en.ts
@@ -692,4 +692,13 @@ Specify full path to executable program
+
+ qbrowserlib::SwissWebWidget
+
+
+
+ name of the browser's toolbar
+
+
+
diff --git a/src/qbrowserlib/qbrowserlib_fr.ts b/src/qbrowserlib/qbrowserlib_fr.ts
index 7cdf3d2..dc5d0f3 100644
--- a/src/qbrowserlib/qbrowserlib_fr.ts
+++ b/src/qbrowserlib/qbrowserlib_fr.ts
@@ -692,4 +692,13 @@ Specify full path to executable program
+
+ qbrowserlib::SwissWebWidget
+
+
+
+ name of the browser's toolbar
+
+
+
diff --git a/src/qbrowserlib/qbrowserlib_it.ts b/src/qbrowserlib/qbrowserlib_it.ts
index bd953e3..42173e8 100644
--- a/src/qbrowserlib/qbrowserlib_it.ts
+++ b/src/qbrowserlib/qbrowserlib_it.ts
@@ -692,4 +692,13 @@ Specify full path to executable program
+
+ qbrowserlib::SwissWebWidget
+
+
+
+ name of the browser's toolbar
+
+
+
diff --git a/src/qbrowserlib/swisswebwidget.hxx b/src/qbrowserlib/swisswebwidget.hxx
index d881353..67f4b3d 100644
--- a/src/qbrowserlib/swisswebwidget.hxx
+++ b/src/qbrowserlib/swisswebwidget.hxx
@@ -11,6 +11,8 @@
#include
#include
+#include
+#include
//! @addtogroup qbrowserlib
//! @{
@@ -27,6 +29,18 @@ namespace qbrowserlib {
public:
SwissWebWidget(QWidget* p=0): QWidget(p) {
setupUi(this);
+ QMainWindow* w(qobject_cast(p));
+ if (w) {
+ /*! Within a QMainWindow, the widget automatically reparents
+ the top buttons to the toolbar and the bottom status
+ line to the window's status bar. */
+ QToolBar* t(w->addToolBar(trUtf8("Browser Tools",
+ "name of the browser's toolbar")));
+ _tools->setParent(t);
+ _statusbar->removeWidget(_status);
+ for (int i(_statusbar->count()); i>0;)
+ w->statusBar()->addWidget(_statusbar->itemAt(--i)->widget());
+ }
}
protected:
};
diff --git a/src/qbrowserlib/swisswebwidget.ui b/src/qbrowserlib/swisswebwidget.ui
index 8540bfc..2b43840 100644
--- a/src/qbrowserlib/swisswebwidget.ui
+++ b/src/qbrowserlib/swisswebwidget.ui
@@ -116,7 +116,7 @@
-
-
+
-