From 997e2b37b38c7aa14aadb9a7197cd1c1e07feefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Thu, 8 Nov 2012 09:27:52 +0000 Subject: [PATCH] verbose; refs #167 --- src/qbrowserlib/qbrowserlib_de.ts | 2 +- src/qbrowserlib/qbrowserlib_en.ts | 2 +- src/qbrowserlib/qbrowserlib_fr.ts | 2 +- src/qbrowserlib/qbrowserlib_it.ts | 2 +- src/qbrowserlib/swisswebwidget.hxx | 8 +++++++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/qbrowserlib/qbrowserlib_de.ts b/src/qbrowserlib/qbrowserlib_de.ts index 0d74ea6..e08b504 100644 --- a/src/qbrowserlib/qbrowserlib_de.ts +++ b/src/qbrowserlib/qbrowserlib_de.ts @@ -695,7 +695,7 @@ Specify full path to executable program qbrowserlib::SwissWebWidget - + Browser Tools name of the browser's toolbar diff --git a/src/qbrowserlib/qbrowserlib_en.ts b/src/qbrowserlib/qbrowserlib_en.ts index fd8ea60..0ef518d 100644 --- a/src/qbrowserlib/qbrowserlib_en.ts +++ b/src/qbrowserlib/qbrowserlib_en.ts @@ -695,7 +695,7 @@ Specify full path to executable program qbrowserlib::SwissWebWidget - + Browser Tools name of the browser's toolbar diff --git a/src/qbrowserlib/qbrowserlib_fr.ts b/src/qbrowserlib/qbrowserlib_fr.ts index dc5d0f3..0f661da 100644 --- a/src/qbrowserlib/qbrowserlib_fr.ts +++ b/src/qbrowserlib/qbrowserlib_fr.ts @@ -695,7 +695,7 @@ Specify full path to executable program qbrowserlib::SwissWebWidget - + Browser Tools name of the browser's toolbar diff --git a/src/qbrowserlib/qbrowserlib_it.ts b/src/qbrowserlib/qbrowserlib_it.ts index 42173e8..3afe9d8 100644 --- a/src/qbrowserlib/qbrowserlib_it.ts +++ b/src/qbrowserlib/qbrowserlib_it.ts @@ -695,7 +695,7 @@ Specify full path to executable program qbrowserlib::SwissWebWidget - + Browser Tools name of the browser's toolbar diff --git a/src/qbrowserlib/swisswebwidget.hxx b/src/qbrowserlib/swisswebwidget.hxx index 67f4b3d..8fe51e4 100644 --- a/src/qbrowserlib/swisswebwidget.hxx +++ b/src/qbrowserlib/swisswebwidget.hxx @@ -14,6 +14,8 @@ #include #include +#include + //! @addtogroup qbrowserlib //! @{ @@ -30,16 +32,20 @@ namespace qbrowserlib { SwissWebWidget(QWidget* p=0): QWidget(p) { setupUi(this); QMainWindow* w(qobject_cast(p)); + qDebug()<<"Parent "<addToolBar(trUtf8("Browser Tools", "name of the browser's toolbar"))); _tools->setParent(t); _statusbar->removeWidget(_status); - for (int i(_statusbar->count()); i>0;) + for (int i(_statusbar->count()); i>0;) { + qDebug()<<"Rearranging item "<<(i-1)<<_statusbar->itemAt(--i); w->statusBar()->addWidget(_statusbar->itemAt(--i)->widget()); + } } } protected: