Improved QMdiArea support
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@602 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2007-11-20 Paul Giblock <drfaygo/at/gmail/dot/com>
|
||||
|
||||
* src/core/main_window:
|
||||
fixed flashing/moving windows on project load
|
||||
|
||||
2007-11-19 Paul Giblock <drfaygo/at/gmail/dot/com>
|
||||
|
||||
* plugins/midi_import/midi_import.cpp:
|
||||
|
||||
@@ -564,13 +564,18 @@ void mainWindow::restoreWidgetState( QWidget * _w, const QDomElement & _de )
|
||||
tMax( 0, _de.attribute( "y" ).toInt() ),
|
||||
_de.attribute( "width" ).toInt(),
|
||||
_de.attribute( "height" ).toInt() );
|
||||
if( !r.isNull() && _w->parentWidget() != NULL )
|
||||
if( !r.isNull())
|
||||
{
|
||||
_w->show();
|
||||
if( _w->parentWidget() != NULL )
|
||||
if (_w->parentWidget() != NULL &&
|
||||
_w->parentWidget()->inherits("QMdiSubWindow"))
|
||||
{
|
||||
_w->parentWidget()->move( r.topLeft() );
|
||||
_w = _w->parentWidget();
|
||||
}
|
||||
|
||||
_w->show();
|
||||
|
||||
_w->move( r.topLeft() );
|
||||
_w->setShown( _de.attribute( "visible" ).toInt() );
|
||||
_w->resize( r.size() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user