Skip to content

Commit

Permalink
Move initialization to header
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 27, 2018
1 parent 3744043 commit b5371b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/gui/qgssnaptogridcanvasitem.cpp
Expand Up @@ -18,8 +18,6 @@

QgsSnapToGridCanvasItem::QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas )
: QgsMapCanvasItem( mapCanvas )
, mGridPen( QPen( QColor( 127, 127, 127, 150 ), 1 ) )
, mCurrentPointPen( QPen( QColor( 200, 200, 200, 150 ), 3 ) )
{
updateMapCanvasCrs();
connect( mMapCanvas, &QgsMapCanvas::extentsChanged, this, &QgsSnapToGridCanvasItem::updateZoomFactor );
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgssnaptogridcanvasitem.h
Expand Up @@ -99,8 +99,8 @@ class GUI_EXPORT QgsSnapToGridCanvasItem : public QObject, public QgsMapCanvasIt
void updateZoomFactor();

private:
QPen mGridPen;
QPen mCurrentPointPen;
QPen mGridPen = QPen( QColor( 127, 127, 127, 150 ) );
QPen mCurrentPointPen = QPen( QColor( 200, 200, 200, 150 ) );

bool mEnabled = true;
bool mAvailableByZoomFactor = false;
Expand Down

0 comments on commit b5371b2

Please sign in to comment.