Skip to content
Permalink
Browse files

Move initialization to header

  • Loading branch information
m-kuhn committed Aug 27, 2018
1 parent 3744043 commit b5371b282af5ad7d41dc8f16026ea11354ba31e2
Showing with 2 additions and 4 deletions.
  1. +0 −2 src/gui/qgssnaptogridcanvasitem.cpp
  2. +2 −2 src/gui/qgssnaptogridcanvasitem.h
@@ -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 );
@@ -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;

0 comments on commit b5371b2

Please sign in to comment.
You can’t perform that action at this time.