|
|
|
@ -41,16 +41,16 @@ namespace qbrowserlib { |
|
|
|
|
QToolBar* t(w->addToolBar(trUtf8("Browser Tools", |
|
|
|
|
"name of the browser's toolbar"))); |
|
|
|
|
while (_tools->count()) { |
|
|
|
|
qDebug()<<"Rearranging tool item "<<(_tools->count()-1)<<_tools->itemAt(_tools->count()-1); |
|
|
|
|
t->addWidget(_tools->itemAt(_tools->count()-1)->widget()); |
|
|
|
|
qDebug()<<"Rearranging tool item "<<(0)<<_tools->itemAt(0); |
|
|
|
|
t->addWidget(_tools->itemAt(0)->widget()); |
|
|
|
|
} |
|
|
|
|
delete _tools; _tools=0; |
|
|
|
|
t->show(); |
|
|
|
|
_statusbar->removeWidget(_status); |
|
|
|
|
delete _status; _status=0; |
|
|
|
|
while (_statusbar->count()) { |
|
|
|
|
qDebug()<<"Rearranging stat item "<<(_statusbar->count()-1)<<_statusbar->itemAt(_statusbar->count()-1); |
|
|
|
|
w->statusBar()->addWidget(_statusbar->itemAt(_statusbar->count()-1)->widget()); |
|
|
|
|
qDebug()<<"Rearranging stat item "<<(0)<<_statusbar->itemAt(0); |
|
|
|
|
w->statusBar()->addWidget(_statusbar->itemAt(0)->widget()); |
|
|
|
|
} |
|
|
|
|
delete _statusbar; _statusbar=0; |
|
|
|
|
} |
|
|
|
|