Skip to content
Permalink
Browse files

Build and review fixes

  • Loading branch information
wonder-sk committed Oct 26, 2017
1 parent 568b22d commit b508bf7f1c7f59f081a9eaa8fcec7686961e7244
Showing with 16 additions and 4 deletions.
  1. +1 −1 python/gui/gui_auto.sip
  2. +6 −0 python/gui/qgssnapindicator.sip
  3. +2 −3 src/gui/qgssnapindicator.cpp
  4. +7 −0 src/gui/qgssnapindicator.h
@@ -14,6 +14,7 @@
%Include qgsmapmouseevent.sip
%Include qgsmaptip.sip
%Include qgsrubberband.sip
%Include qgssnapindicator.sip
%Include qgstablewidgetitem.sip
%Include qgsuserinputdockwidget.sip
%Include qgsbrowserdockwidget.sip
@@ -188,7 +189,6 @@
%Include qgssearchquerybuilder.sip
%Include qgsshortcutsmanager.sip
%Include qgsslider.sip
%Include qgssnapindicator.sip
%Include qgsstatusbar.sip
%Include qgssublayersdialog.sip
%Include qgssubstitutionlistwidget.sip
@@ -48,6 +48,12 @@ Returns whether the snapping indicator is visible
:rtype: bool
%End

private:
QgsSnapIndicator( const QgsSnapIndicator &rh );
QgsSnapIndicator &operator=( const QgsSnapIndicator & );
%Docstring
:rtype: QgsSnapIndicator
%End
};

/************************************************************************
@@ -28,9 +28,8 @@ QgsSnapIndicator::QgsSnapIndicator( QgsMapCanvas *canvas )
{
}

QgsSnapIndicator::~QgsSnapIndicator()
{
}
QgsSnapIndicator::~QgsSnapIndicator() = default;


void QgsSnapIndicator::setMatch( const QgsPointLocator::Match &match )
{
@@ -47,6 +47,13 @@ class GUI_EXPORT QgsSnapIndicator
bool isVisible() const;

private:
Q_DISABLE_COPY( QgsSnapIndicator )

#ifdef SIP_RUN
QgsSnapIndicator( const QgsSnapIndicator &rh );
QgsSnapIndicator &operator=( const QgsSnapIndicator & );
#endif

QgsMapCanvas *mCanvas;
QgsPointLocator::Match mMatch;
std::unique_ptr<QgsVertexMarker> mSnappingMarker;

0 comments on commit b508bf7

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