37
37
QgsSingleSymbolDialog::QgsSingleSymbolDialog (): QDialog(), mVectorLayer( 0 )
38
38
{
39
39
setupUi ( this );
40
- #ifdef QGISDEBUG
41
- qWarning ( " constructor QgsSingleSymbolDialog called WITHOUT a layer" );
42
- #endif
40
+ QgsDebugMsg ( " entered." );
43
41
}
44
42
45
43
QgsSingleSymbolDialog::QgsSingleSymbolDialog ( QgsVectorLayer * layer, bool disabled ): QDialog(), mVectorLayer( layer )
46
44
{
47
45
setupUi ( this );
48
-
49
- #ifdef QGISDEBUG
50
- qWarning ( " constructor QgsSingleSymbolDialog called WITH a layer" );
51
- #endif
46
+ QgsDebugMsg ( " entered." );
52
47
53
48
//
54
49
// set point symbol list
@@ -110,7 +105,7 @@ QgsSingleSymbolDialog::QgsSingleSymbolDialog( QgsVectorLayer * layer, bool disab
110
105
}
111
106
else
112
107
{
113
- qWarning ( " Warning, data provider is null in QgsSingleSymbolDialog::QgsSingleSymbolDialog(...) " );
108
+ QgsDebugMsg ( " Warning, data provider is null" );
114
109
return ;
115
110
}
116
111
//
@@ -173,8 +168,7 @@ QgsSingleSymbolDialog::QgsSingleSymbolDialog( QgsVectorLayer * layer, bool disab
173
168
}
174
169
else
175
170
{
176
- qWarning ( " Warning, layer is a null pointer in "
177
- " QgsSingleSymbolDialog::QgsSingleSymbolDialog(QgsVectorLayer)" );
171
+ QgsDebugMsg ( " Warning, layer is a null pointer" );
178
172
}
179
173
}
180
174
@@ -183,8 +177,8 @@ QgsSingleSymbolDialog::QgsSingleSymbolDialog( QgsVectorLayer * layer, bool disab
183
177
connect ( btnFillColor, SIGNAL ( clicked () ), this , SLOT ( selectFillColor () ) );
184
178
connect ( outlinewidthspinbox, SIGNAL ( valueChanged ( double ) ), this , SLOT ( resendSettingsChanged () ) );
185
179
connect ( mLabelEdit , SIGNAL ( textChanged ( const QString& ) ), this , SLOT ( resendSettingsChanged () ) );
186
- connect ( lstSymbols, SIGNAL ( currentItemChanged ( QListWidgetItem * , QListWidgetItem * ) ),
187
- this , SLOT ( symbolChanged ( QListWidgetItem * , QListWidgetItem * ) ) );
180
+ connect ( lstSymbols, SIGNAL ( currentItemChanged ( QListWidgetItem *, QListWidgetItem * ) ),
181
+ this , SLOT ( symbolChanged ( QListWidgetItem *, QListWidgetItem * ) ) );
188
182
connect ( mPointSizeSpinBox , SIGNAL ( valueChanged ( double ) ), this , SLOT ( resendSettingsChanged () ) );
189
183
connect ( mRotationClassificationComboBox , SIGNAL ( currentIndexChanged ( const QString & ) ),
190
184
this , SLOT ( resendSettingsChanged () ) );
@@ -203,9 +197,7 @@ QgsSingleSymbolDialog::QgsSingleSymbolDialog( QgsVectorLayer * layer, bool disab
203
197
204
198
QgsSingleSymbolDialog::~QgsSingleSymbolDialog ()
205
199
{
206
- #ifdef QGISDEBUG
207
- qWarning ( " destructor QgsSingleSymbolDialog" );
208
- #endif
200
+ QgsDebugMsg ( " entered." );
209
201
}
210
202
211
203
void QgsSingleSymbolDialog::selectOutlineColor ()
@@ -508,9 +500,8 @@ void QgsSingleSymbolDialog::setFillColor( QColor& c )
508
500
509
501
void QgsSingleSymbolDialog::setFillStyle ( Qt::BrushStyle fstyle )
510
502
{
511
- #ifdef QGISDEBUG
512
- qWarning (( " Setting fill style: " + QgsSymbologyUtils::brushStyle2QString ( fstyle ) ).toLocal8Bit ().data () );
513
- #endif
503
+ QgsDebugMsg ( QString ( " Setting fill style: %1" ).arg ( QgsSymbologyUtils::brushStyle2QString ( fstyle ) ) );
504
+
514
505
QString myFillStyle = QgsSymbologyUtils::brushStyle2QString ( fstyle );
515
506
for ( int i = 0 ; i < cboFillStyle->count (); ++i )
516
507
{
@@ -587,7 +578,7 @@ void QgsSingleSymbolDialog::fillStyleChanged( int theIndex )
587
578
// if the new style is texture we need to enable the texture
588
579
// selection button, otherwise disable it
589
580
QString myFillStyle =
590
- cboFillStyle->itemData ( theIndex , Qt::UserRole ).toString ();
581
+ cboFillStyle->itemData ( theIndex, Qt::UserRole ).toString ();
591
582
if ( " TexturePattern" == myFillStyle )
592
583
{
593
584
toolSelectTexture->setEnabled ( true );
0 commit comments