@@ -402,7 +402,7 @@ void QgsGrassEdit::init()
402
402
403
403
// Restore symbology
404
404
QString spath = " /GRASS/edit/symb/" ;
405
- QSettings settings ( " QuantumGIS " , " qgis " ) ;
405
+ QSettings settings;
406
406
407
407
mLineWidth = settings.readNumEntry (
408
408
spath + " lineWidth" , 1 );
@@ -731,7 +731,7 @@ void QgsGrassEdit::changeSymbology(Q3ListViewItem * item, const QPoint & pnt, in
731
731
std::cerr << " QgsGrassEdit::changeSymbology() col = " << col << std::endl;
732
732
#endif
733
733
734
- QSettings settings ( " QuantumGIS " , " qgis " ) ;
734
+ QSettings settings;
735
735
736
736
if ( !item ) return ;
737
737
@@ -768,7 +768,7 @@ void QgsGrassEdit::lineWidthChanged()
768
768
#ifdef QGISDEBUG
769
769
std::cerr << " QgsGrassEdit::lineWidthChanged()" << std::endl;
770
770
#endif
771
- QSettings settings ( " QuantumGIS " , " qgis " ) ;
771
+ QSettings settings;
772
772
mLineWidth = mLineWidthSpinBox ->value ();
773
773
774
774
for ( int i = 0 ; i < SYMB_COUNT; i++ ) {
@@ -784,15 +784,15 @@ void QgsGrassEdit::markerSizeChanged()
784
784
#ifdef QGISDEBUG
785
785
std::cerr << " QgsGrassEdit::markerSizeChanged()" << std::endl;
786
786
#endif
787
- QSettings settings ( " QuantumGIS " , " qgis " ) ;
787
+ QSettings settings;
788
788
mSize = mMarkerSizeSpinBox ->value ();
789
789
QString spath = " /GRASS/edit/symb/" ;
790
790
settings.writeEntry ( spath + " markerSize" , mSize );
791
791
}
792
792
793
793
void QgsGrassEdit::restorePosition ()
794
794
{
795
- QSettings settings ( " QuantumGIS " , " qgis " ) ;
795
+ QSettings settings;
796
796
int ww = settings.readNumEntry (" /GRASS/windows/edit/w" , 420 );
797
797
int wh = settings.readNumEntry (" /GRASS/windows/edit/h" , 150 );
798
798
int wx = settings.readNumEntry (" /GRASS/windows/edit/x" , 100 );
@@ -803,7 +803,7 @@ void QgsGrassEdit::restorePosition()
803
803
804
804
void QgsGrassEdit::saveWindowLocation ()
805
805
{
806
- QSettings settings ( " QuantumGIS " , " qgis " ) ;
806
+ QSettings settings;
807
807
QPoint p = this ->pos ();
808
808
QSize s = this ->size ();
809
809
settings.writeEntry (" /GRASS/windows/edit/x" , p.x ());
0 commit comments