Commit 9e4975ec authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Permit QVLCFrame to have empty default size and pos in read settings.

parent a85dfcf7
......@@ -53,7 +53,9 @@ public:
protected:
intf_thread_t *p_intf;
void readSettings( QString name, QSize defSize, QPoint defPos )
void readSettings( QString name,
QSize defSize = QSize( 0, 0 ),
QPoint defPos = QPoint( 0, 0 ) )
{
QSettings settings( "vlc", "vlc-qt-interface" );
settings.beginGroup( name );
......@@ -157,7 +159,6 @@ protected:
QSettings settings( "vlc", "vlc-qt-interface" );
settings.beginGroup( name );
QSize s = settings.value( "size", defSize ).toSize() ;
fprintf( stderr, "%i %i ", s.width(), s.height() );
move( settings.value( "pos", QPoint( 0,0 ) ).toPoint() );
settings.endGroup();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment