|
|
|
@ -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: |
|
|
|
|