Skip to content
Permalink
Browse files

Fix warnings

  • Loading branch information
nyalldawson committed Sep 11, 2015
1 parent fd2ad13 commit f03f10856772fa503bc2ac87e42d5c526d76993e
Showing with 4 additions and 1 deletion.
  1. +2 −0 src/gui/qgsmapmouseevent.cpp
  2. +2 −1 src/gui/qgsmapmouseevent.h
@@ -19,10 +19,12 @@

#include "qgssnappingutils.h"

/// @cond
struct EdgesOnlyFilter : public QgsPointLocator::MatchFilter
{
bool acceptMatch( const QgsPointLocator::Match& m ) override { return m.hasEdge(); }
};
/// @endcond

QgsMapMouseEvent::QgsMapMouseEvent( QgsMapCanvas* mapCanvas, QMouseEvent* event )
: QMouseEvent( event->type(), event->pos(), event->button(), event->buttons(), event->modifiers() )
@@ -70,9 +70,10 @@ class GUI_EXPORT QgsMapMouseEvent : public QMouseEvent
QgsPoint snapPoint( SnappingMode snappingMode );

/**
* returns the first snapped segment. If the cached snapped match is a segment, it will simply return it.
* Returns the first snapped segment. If the cached snapped match is a segment, it will simply return it.
* Otherwise it will try to snap a segment according to the event's snapping mode. In this case the cache
* will not be overwritten.
* @param snappingMode snapping mode
* @param snapped if given, determines if a segment has been snapped
* @param allLayers if true, override snapping mode
*/

0 comments on commit f03f108

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