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