next try; refs #167
This commit is contained in:
@@ -40,17 +40,17 @@ namespace qbrowserlib {
|
|||||||
qDebug()<<"Rearranging";
|
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")));
|
||||||
for (int i(_tools->count()); i>0;) {
|
while (_tools->count()) {
|
||||||
qDebug()<<"Rearranging tool item "<<(i-1)<<_tools->itemAt(i-1);
|
qDebug()<<"Rearranging tool item "<<(_tools->count()-1)<<_tools->itemAt(_tools->count()-1);
|
||||||
t->addWidget(_tools->itemAt(--i)->widget());
|
t->addWidget(_tools->itemAt(_tools->count()-1)->widget());
|
||||||
}
|
}
|
||||||
delete _tools; _tools=0;
|
delete _tools; _tools=0;
|
||||||
t->show();
|
t->show();
|
||||||
_statusbar->removeWidget(_status);
|
_statusbar->removeWidget(_status);
|
||||||
delete _status; _status=0;
|
delete _status; _status=0;
|
||||||
for (int i(_statusbar->count()); i>0;) {
|
while (_statusbar->count()) {
|
||||||
qDebug()<<"Rearranging stat item "<<(i-1)<<_statusbar->itemAt(i-1);
|
qDebug()<<"Rearranging stat item "<<(_statusbar->count()-1)<<_statusbar->itemAt(_statusbar->count()-1);
|
||||||
w->statusBar()->addWidget(_statusbar->itemAt(--i)->widget());
|
w->statusBar()->addWidget(_statusbar->itemAt(_statusbar->count()-1)->widget());
|
||||||
}
|
}
|
||||||
delete _statusbar; _statusbar=0;
|
delete _statusbar; _statusbar=0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user