@@ -118,12 +118,12 @@ void QgsMapToolFreezeLabels::showFrozenLabels( bool show )
118118 mShowFrozen = show;
119119 if ( mShowFrozen )
120120 {
121- QgsDebugMsg ( QString ( " Toggling on frozen label highlighting" ));
121+ QgsDebugMsg ( QString ( " Toggling on frozen label highlighting" ) );
122122 highlightFrozenLabels ();
123123 }
124124 else
125125 {
126- QgsDebugMsg ( QString ( " Toggling off frozen label highlighting" ));
126+ QgsDebugMsg ( QString ( " Toggling off frozen label highlighting" ) );
127127 removeFrozenHighlights ();
128128 }
129129}
@@ -133,15 +133,15 @@ void QgsMapToolFreezeLabels::updateFrozenLabels()
133133{
134134 if ( mShowFrozen )
135135 {
136- QgsDebugMsg ( QString ( " Updating highlighting due to layer editing mode change" ));
136+ QgsDebugMsg ( QString ( " Updating highlighting due to layer editing mode change" ) );
137137 mCanvas ->refresh ();
138138 }
139139}
140140
141141void QgsMapToolFreezeLabels::highlightLabel ( QgsVectorLayer* vlayer,
142- const QgsLabelPosition& labelpos,
143- const QString& id,
144- const QColor& color )
142+ const QgsLabelPosition& labelpos,
143+ const QString& id,
144+ const QColor& color )
145145{
146146 QgsRectangle rect = labelpos.labelRect ;
147147
@@ -152,7 +152,7 @@ void QgsMapToolFreezeLabels::highlightLabel( QgsVectorLayer* vlayer,
152152 if ( vlayer->crs () != mRender ->destinationCrs () )
153153 {
154154 rect = mRender ->mapToLayerCoordinates ( vlayer, rect );
155- QgsDebugMsg ( QString ( " Reverse transform needed for highlight rectangle" ));
155+ QgsDebugMsg ( QString ( " Reverse transform needed for highlight rectangle" ) );
156156 }
157157 }
158158
@@ -209,9 +209,9 @@ void QgsMapToolFreezeLabels::highlightFrozenLabels()
209209 {
210210 mCurrentLabelPos = *it;
211211
212- if ( mCurrentLabelPos .isFrozen )
212+ if ( mCurrentLabelPos .isFrozen )
213213 {
214- QString labelStringID = QString (" %0|%1" ).arg (mCurrentLabelPos .layerID , QString::number ( mCurrentLabelPos .featureId ) );
214+ QString labelStringID = QString ( " %0|%1" ).arg ( mCurrentLabelPos .layerID , QString::number ( mCurrentLabelPos .featureId ) );
215215
216216 // don't highlight again
217217 if ( mHighlights .contains ( labelStringID ) )
@@ -236,7 +236,7 @@ void QgsMapToolFreezeLabels::highlightFrozenLabels()
236236 lblcolor = QColor ( 54 , 129 , 0 , 255 );
237237 }
238238
239- highlightLabel ( vlayer, ( *it ), labelStringID, lblcolor);
239+ highlightLabel ( vlayer, ( *it ), labelStringID, lblcolor );
240240 }
241241 }
242242 QApplication::restoreOverrideCursor ();
@@ -253,7 +253,7 @@ void QgsMapToolFreezeLabels::removeFrozenHighlights()
253253 QApplication::restoreOverrideCursor ();
254254}
255255
256- void QgsMapToolFreezeLabels::freezeThawLabels ( const QgsRectangle& ext, QMouseEvent * e )
256+ void QgsMapToolFreezeLabels::freezeThawLabels ( const QgsRectangle& ext, QMouseEvent * e )
257257{
258258
259259 bool doThaw = e->modifiers () & Qt::ShiftModifier ? true : false ;
@@ -312,10 +312,10 @@ void QgsMapToolFreezeLabels::freezeThawLabels( const QgsRectangle& ext, QMouseEv
312312 continue ;
313313 }
314314
315- QString labelStringID = QString (" %0|%1" ).arg (mCurrentLabelPos .layerID , QString::number ( mCurrentLabelPos .featureId ) );
315+ QString labelStringID = QString ( " %0|%1" ).arg ( mCurrentLabelPos .layerID , QString::number ( mCurrentLabelPos .featureId ) );
316316
317317 // thaw label
318- if ( mCurrentLabelPos .isFrozen && !doHide && ( doThaw || toggleThawOrFreeze ) )
318+ if ( mCurrentLabelPos .isFrozen && !doHide && ( doThaw || toggleThawOrFreeze ) )
319319 {
320320 // thaw previously frozen label (set attribute table fields to NULL)
321321 if ( freezeThawLabel ( vlayer, mCurrentLabelPos , false ) )
@@ -370,8 +370,8 @@ void QgsMapToolFreezeLabels::freezeThawLabels( const QgsRectangle& ext, QMouseEv
370370}
371371
372372bool QgsMapToolFreezeLabels::freezeThawLabel ( QgsVectorLayer* vlayer,
373- const QgsLabelPosition& labelpos,
374- bool freeze )
373+ const QgsLabelPosition& labelpos,
374+ bool freeze )
375375{
376376 // skip diagrams
377377 if ( labelpos.isDiagram )
0 commit comments