Remove duplicate code
This commit is contained in:
parent
8ca888b063
commit
dcfd7c6246
|
@ -2,6 +2,7 @@
|
||||||
* Improve adjustSize()
|
* Improve adjustSize()
|
||||||
* Implement adjustSizeGlobal() for all widgets
|
* Implement adjustSizeGlobal() for all widgets
|
||||||
* Don't focus menus with focusFirstChild() and focusLastChild()
|
* Don't focus menus with focusFirstChild() and focusLastChild()
|
||||||
|
* Remove duplicate code
|
||||||
|
|
||||||
2016-05-01 Markus Gans <guru.mail@muenster.de>
|
2016-05-01 Markus Gans <guru.mail@muenster.de>
|
||||||
* Better terminal identification
|
* Better terminal identification
|
||||||
|
|
|
@ -1264,32 +1264,21 @@ void FWidget::resize()
|
||||||
closeConsole();
|
closeConsole();
|
||||||
resizeVTerm();
|
resizeVTerm();
|
||||||
resizeArea (vdesktop);
|
resizeArea (vdesktop);
|
||||||
|
|
||||||
if ( menubar )
|
if ( menubar )
|
||||||
{
|
{
|
||||||
menubar->setGeometry(1, 1, width, 1, false);
|
menubar->setGeometry(1, 1, width, 1, false);
|
||||||
if ( vmenubar )
|
if ( vmenubar )
|
||||||
resizeArea(vmenubar);
|
resizeArea(vmenubar);
|
||||||
menubar->adjustSize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( statusbar )
|
if ( statusbar )
|
||||||
{
|
{
|
||||||
statusbar->setGeometry(1, height, width, 1, false);
|
statusbar->setGeometry(1, height, width, 1, false);
|
||||||
if ( vstatusbar )
|
if ( vstatusbar )
|
||||||
resizeArea(vstatusbar);
|
resizeArea(vstatusbar);
|
||||||
statusbar->adjustSize();
|
|
||||||
}
|
|
||||||
if ( window_list && ! window_list->empty() )
|
|
||||||
{
|
|
||||||
widgetList::const_iterator iter, end;
|
|
||||||
iter = window_list->begin();
|
|
||||||
end = window_list->end();
|
|
||||||
|
|
||||||
while ( iter != end )
|
|
||||||
{
|
|
||||||
(*iter)->adjustSize();
|
|
||||||
++iter;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
adjustSizeGlobal();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
adjustSize();
|
adjustSize();
|
||||||
|
|
Loading…
Reference in New Issue