next try; refs #167

master
Marc Wäckerlin 12 years ago
parent 4c5948973c
commit 7f797ff9c3
  1. 10
      src/qbrowserlib/swisswebwidget.hxx
  2. 2
      src/qbrowserlib/swisswebwidget.ui

@ -40,13 +40,19 @@ namespace qbrowserlib {
qDebug()<<"Rearranging";
QToolBar* t(w->addToolBar(trUtf8("Browser Tools",
"name of the browser's toolbar")));
_tools->setParent(t);
for (int i(_tools->count()); i>0;) {
qDebug()<<"Rearranging tool item "<<(i-1)<<_tools->itemAt(i-1);
t->addWidget(_statusbar->itemAt(--i)->widget());
}
delete _tools; _tools=0;
t->show();
_statusbar->removeWidget(_status);
delete _status; _status=0;
for (int i(_statusbar->count()); i>0;) {
qDebug()<<"Rearranging item "<<(i-1)<<_statusbar->itemAt(i-1);
qDebug()<<"Rearranging stat item "<<(i-1)<<_statusbar->itemAt(i-1);
w->statusBar()->addWidget(_statusbar->itemAt(--i)->widget());
}
delete _statusbar; _statusbar=0;
}
}
protected:

@ -113,7 +113,7 @@
</layout>
</item>
<item>
<widget class="qbrowserlib::SwissWebView" name="swisswebview"/>
<widget class="qbrowserlib::SwissWebView" name="_webview"/>
</item>
<item>
<layout class="QHBoxLayout" name="_statusbar">

Loading…
Cancel
Save