verbose; refs #167

master
Marc Wäckerlin 12 years ago
parent fbb837f84a
commit 997e2b37b3
  1. 2
      src/qbrowserlib/qbrowserlib_de.ts
  2. 2
      src/qbrowserlib/qbrowserlib_en.ts
  3. 2
      src/qbrowserlib/qbrowserlib_fr.ts
  4. 2
      src/qbrowserlib/qbrowserlib_it.ts
  5. 8
      src/qbrowserlib/swisswebwidget.hxx

@ -695,7 +695,7 @@ Specify full path to executable program</source>
<context> <context>
<name>qbrowserlib::SwissWebWidget</name> <name>qbrowserlib::SwissWebWidget</name>
<message> <message>
<location filename="swisswebwidget.hxx" line="37"/> <location filename="swisswebwidget.hxx" line="41"/>
<source>Browser Tools</source> <source>Browser Tools</source>
<comment>name of the browser&apos;s toolbar</comment> <comment>name of the browser&apos;s toolbar</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

@ -695,7 +695,7 @@ Specify full path to executable program</source>
<context> <context>
<name>qbrowserlib::SwissWebWidget</name> <name>qbrowserlib::SwissWebWidget</name>
<message> <message>
<location filename="swisswebwidget.hxx" line="37"/> <location filename="swisswebwidget.hxx" line="41"/>
<source>Browser Tools</source> <source>Browser Tools</source>
<comment>name of the browser&apos;s toolbar</comment> <comment>name of the browser&apos;s toolbar</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

@ -695,7 +695,7 @@ Specify full path to executable program</source>
<context> <context>
<name>qbrowserlib::SwissWebWidget</name> <name>qbrowserlib::SwissWebWidget</name>
<message> <message>
<location filename="swisswebwidget.hxx" line="37"/> <location filename="swisswebwidget.hxx" line="41"/>
<source>Browser Tools</source> <source>Browser Tools</source>
<comment>name of the browser&apos;s toolbar</comment> <comment>name of the browser&apos;s toolbar</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

@ -695,7 +695,7 @@ Specify full path to executable program</source>
<context> <context>
<name>qbrowserlib::SwissWebWidget</name> <name>qbrowserlib::SwissWebWidget</name>
<message> <message>
<location filename="swisswebwidget.hxx" line="37"/> <location filename="swisswebwidget.hxx" line="41"/>
<source>Browser Tools</source> <source>Browser Tools</source>
<comment>name of the browser&apos;s toolbar</comment> <comment>name of the browser&apos;s toolbar</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

@ -14,6 +14,8 @@
#include <QtGui/QToolBar> #include <QtGui/QToolBar>
#include <QtGui/QStatusBar> #include <QtGui/QStatusBar>
#include <QtDebug>
//! @addtogroup qbrowserlib //! @addtogroup qbrowserlib
//! @{ //! @{
@ -30,18 +32,22 @@ namespace qbrowserlib {
SwissWebWidget(QWidget* p=0): QWidget(p) { SwissWebWidget(QWidget* p=0): QWidget(p) {
setupUi(this); setupUi(this);
QMainWindow* w(qobject_cast<QMainWindow*>(p)); QMainWindow* w(qobject_cast<QMainWindow*>(p));
qDebug()<<"Parent "<<p<<(w?"is":"is not")<<" a QMainWindow";
if (w) { if (w) {
/*! Within a QMainWindow, the widget automatically reparents /*! Within a QMainWindow, the widget automatically reparents
the top buttons to the toolbar and the bottom status the top buttons to the toolbar and the bottom status
line to the window's status bar. */ line to the window's status bar. */
qDebug()<<"Rearranging";
QToolBar* t(w->addToolBar(trUtf8("Browser Tools", QToolBar* t(w->addToolBar(trUtf8("Browser Tools",
"name of the browser's toolbar"))); "name of the browser's toolbar")));
_tools->setParent(t); _tools->setParent(t);
_statusbar->removeWidget(_status); _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()); w->statusBar()->addWidget(_statusbar->itemAt(--i)->widget());
} }
} }
}
protected: protected:
}; };

Loading…
Cancel
Save