Commit 6dfbbb80 authored by Antoine Cellerier's avatar Antoine Cellerier

Change the QSettings stuff here too (this looks kind of hackish but at least...

Change the QSettings stuff here too (this looks kind of hackish but at least it makes sure that we don't spawn multiple configuration folders)
parent fede4351
...@@ -55,7 +55,7 @@ protected: ...@@ -55,7 +55,7 @@ protected:
void readSettings( QString name, QSize defSize ) void readSettings( QString name, QSize defSize )
{ {
QSettings settings( "VideoLAN", "VLC" ); QSettings settings( "vlc", "vlc-qt-interface" );
settings.beginGroup( name ); settings.beginGroup( name );
resize( settings.value( "size", defSize ).toSize() ); resize( settings.value( "size", defSize ).toSize() );
move( settings.value( "pos", QPoint( 0,0 ) ).toPoint() ); move( settings.value( "pos", QPoint( 0,0 ) ).toPoint() );
...@@ -63,7 +63,7 @@ protected: ...@@ -63,7 +63,7 @@ protected:
} }
void writeSettings( QString name ) void writeSettings( QString name )
{ {
QSettings settings( "VideoLAN", "VLC" ); QSettings settings( "vlc", "vlc-qt-interface" );
settings.beginGroup( name ); settings.beginGroup( name );
settings.setValue ("size", size() ); settings.setValue ("size", size() );
settings.setValue( "pos", pos() ); settings.setValue( "pos", pos() );
...@@ -149,23 +149,23 @@ protected: ...@@ -149,23 +149,23 @@ protected:
void readSettings( QString name, QSize defSize ) void readSettings( QString name, QSize defSize )
{ {
QSettings settings( "VideoLAN", "VLC" ); QSettings settings( "vlc", "vlc-qt-interface" );
settings.beginGroup( name ); settings.beginGroup( name );
QSize s = settings.value( "size", defSize ).toSize() ; QSize s = settings.value( "size", defSize ).toSize() ;
fprintf( stderr, "%i %i ", s.width(), s.height() ); fprintf( stderr, "%i %i ", s.width(), s.height() );
move( settings.value( "pos", QPoint( 0,0 ) ).toPoint() ); move( settings.value( "pos", QPoint( 0,0 ) ).toPoint() );
settings.endGroup(); settings.endGroup();
} }
void readSettings( QString name ) void readSettings( QString name )
{ {
QSettings settings( "VideoLAN", "VLC" ); QSettings settings( "vlc", "vlc-qt-interface" );
settings.beginGroup( name ); settings.beginGroup( name );
mainSize = settings.value( "size", QSize( 0,0 ) ).toSize(); mainSize = settings.value( "size", QSize( 0,0 ) ).toSize();
settings.endGroup(); settings.endGroup();
} }
void writeSettings( QString name ) void writeSettings( QString name )
{ {
QSettings settings( "VideoLAN", "VLC" ); QSettings settings( "vlc", "vlc-qt-interface" );
settings.beginGroup( name ); settings.beginGroup( name );
settings.setValue ("size", size() ); settings.setValue ("size", size() );
settings.setValue( "pos", pos() ); settings.setValue( "pos", pos() );
......
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