Skip to content

Commit

Permalink
misc doc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed May 29, 2018
1 parent 00b6019 commit 2770f6c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/core/qgstessellator.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#ifndef QGSTESSELLATOR_H
#define QGSTESSELLATOR_H

#define SIP_NO_FILE

#include "qgis_core.h"

class QgsPolygon;
Expand All @@ -25,7 +27,7 @@ class QgsMultiPolygon;
#include <memory>

/**
* \ingroup 3d
* \ingroup core
* Class that takes care of tessellation of polygons into triangles.
*
* It is expected that client code will create the tessellator object, then repeatedly call
Expand Down
6 changes: 3 additions & 3 deletions src/quickgui/qgsquickfeaturelayerpair.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ class QUICK_EXPORT QgsQuickFeatureLayerPair
*/
QgsQuickFeatureLayerPair( const QgsFeature &feature, QgsVectorLayer *layer );

//! \copydoc QgsQuickFeature::layer
//! \copydoc QgsQuickFeatureLayerPair::layer
QgsVectorLayer *layer() const;

//! \copydoc QgsQuickFeature::feature
//! \copydoc QgsQuickFeatureLayerPair::feature
QgsFeature feature() const;

//! \copydoc QgsQuickFeature::isValid
//! \copydoc QgsQuickFeatureLayerPair::isValid
bool isValid() const;

bool operator==( const QgsQuickFeatureLayerPair &other ) const;
Expand Down
18 changes: 17 additions & 1 deletion src/quickgui/qgsquickidentifykit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "qgsquickidentifykit.h"
#include "qgsquickmapsettings.h"

#include "qgis.h"

QgsQuickIdentifyKit::QgsQuickIdentifyKit( QObject *parent )
: QObject( parent )
{
Expand Down Expand Up @@ -230,9 +232,23 @@ double QgsQuickIdentifyKit::searchRadiusMm() const

void QgsQuickIdentifyKit::setSearchRadiusMm( double searchRadiusMm )
{
if ( mSearchRadiusMm == searchRadiusMm )
if ( qgsDoubleNear( mSearchRadiusMm, searchRadiusMm ) )
return;

mSearchRadiusMm = searchRadiusMm;
emit searchRadiusMmChanged();
}

int QgsQuickIdentifyKit::featuresLimit() const
{
return mFeaturesLimit;
}

void QgsQuickIdentifyKit::setFeaturesLimit( int limit )
{
if ( mFeaturesLimit == limit )
return;

mFeaturesLimit = limit;
emit featuresLimitChanged();
}
8 changes: 7 additions & 1 deletion src/quickgui/qgsquickidentifykit.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class QUICK_EXPORT QgsQuickIdentifyKit : public QObject
*
* Default is 100.
*/
Q_PROPERTY( long featuresLimit MEMBER mFeaturesLimit NOTIFY featuresLimitChanged )
Q_PROPERTY( int featuresLimit READ featuresLimit WRITE setFeaturesLimit NOTIFY featuresLimitChanged )

public:
//! Constructor of new identify kit.
Expand All @@ -82,6 +82,12 @@ class QUICK_EXPORT QgsQuickIdentifyKit : public QObject
//! \copydoc QgsQuickIdentifyKit::searchRadiusMm
void setSearchRadiusMm( double searchRadiusMm );

//! \copydoc QgsQuickIdentifyKit::featuresLimit
int featuresLimit() const;

//! \copydoc QgsQuickIdentifyKit::featuresLimit
void setFeaturesLimit( int limit );

/**
* Gets the closest feature to the point within the search radius
*
Expand Down

0 comments on commit 2770f6c

Please sign in to comment.