Skip to content

Commit 78c0c28

Browse files
committed
Fix doxygen warnings
1 parent 49b426d commit 78c0c28

6 files changed

+19
-16
lines changed

python/core/layertree/qgslayertreemodel.sip

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ Return index for a given node. If the node does not belong to the layer tree, th
126126

127127
QList<QgsLayerTreeNode *> indexes2nodes( const QModelIndexList &list, bool skipInternal = false ) const;
128128
%Docstring
129-
Convert a list of indexes to a list of layer tree nodes.
129+
Convert a ``list`` of indexes to a list of layer tree nodes.
130130
Indices that do not represent layer tree nodes are skipped.
131-
\param skipInternal If true, a node is included in the output list only if no parent node is in the list
131+
If ``skipInternal`` is true, a node is included in the output list only if no parent node is in the list.
132132
:rtype: list of QgsLayerTreeNode
133133
%End
134134

python/core/qgspointlocator.sip

+6-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ class QgsPointLocator : QObject
3232
explicit QgsPointLocator( QgsVectorLayer *layer, const QgsCoordinateReferenceSystem &destinationCrs = QgsCoordinateReferenceSystem(),
3333
const QgsRectangle *extent = 0 );
3434
%Docstring
35-
Construct point locator for a layer.
36-
\param destinationCrs if a valid QgsCoordinateReferenceSystem is passed then the locator will
37-
do the searches on data reprojected to the given CRS
38-
\param extent if not null, will index only a subset of the layer
35+
Construct point locator for a ``layer``.
36+
37+
If a valid QgsCoordinateReferenceSystem is passed for ``destinationCrs`` then the locator will
38+
do the searches on data reprojected to the given CRS.
39+
40+
If ``extent`` is not null, the locator will index only a subset of the layer which falls within that extent.
3941
%End
4042

4143
~QgsPointLocator();

src/core/layertree/qgslayertreemodel.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ class CORE_EXPORT QgsLayerTreeModel : public QAbstractItemModel
127127
QModelIndex node2index( QgsLayerTreeNode *node ) const;
128128

129129
/**
130-
* Convert a list of indexes to a list of layer tree nodes.
130+
* Convert a \a list of indexes to a list of layer tree nodes.
131131
* Indices that do not represent layer tree nodes are skipped.
132-
* \param skipInternal If true, a node is included in the output list only if no parent node is in the list
132+
* If \a skipInternal is true, a node is included in the output list only if no parent node is in the list.
133133
*/
134134
QList<QgsLayerTreeNode *> indexes2nodes( const QModelIndexList &list, bool skipInternal = false ) const;
135135

src/core/qgspointlocator.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ class CORE_EXPORT QgsPointLocator : public QObject
5151
Q_OBJECT
5252
public:
5353

54-
/** Construct point locator for a layer.
55-
* \param destinationCrs if a valid QgsCoordinateReferenceSystem is passed then the locator will
56-
* do the searches on data reprojected to the given CRS
57-
* \param extent if not null, will index only a subset of the layer
54+
/** Construct point locator for a \a layer.
55+
*
56+
* If a valid QgsCoordinateReferenceSystem is passed for \a destinationCrs then the locator will
57+
* do the searches on data reprojected to the given CRS.
58+
*
59+
* If \a extent is not null, the locator will index only a subset of the layer which falls within that extent.
5860
*/
5961
explicit QgsPointLocator( QgsVectorLayer *layer, const QgsCoordinateReferenceSystem &destinationCrs = QgsCoordinateReferenceSystem(),
6062
const QgsRectangle *extent = nullptr );

src/gui/qgsprojectionselectiontreewidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ QStringList QgsProjectionSelectionTreeWidget::authorities()
985985
return authorities;
986986
}
987987

988-
const QString QgsProjectionSelectionTreeWidget::sqlSafeString( const QString &theSQL )
988+
QString QgsProjectionSelectionTreeWidget::sqlSafeString( const QString &theSQL ) const
989989
{
990990
QString retval = theSQL;
991991
retval.replace( '\\', QLatin1String( "\\\\" ) );

src/gui/qgsprojectionselectiontreewidget.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,14 @@ class GUI_EXPORT QgsProjectionSelectionTreeWidget : public QWidget, private Ui::
155155
void loadCrsList( QSet<QString> *crsFilter = nullptr );
156156

157157
/**
158-
* \brief Make the string safe for use in SQL statements.
158+
* \brief Makes a \a string safe for use in SQL statements.
159159
* This involves escaping single quotes, double quotes, backslashes,
160160
* and optionally, percentage symbols. Percentage symbols are used
161161
* as wildcards sometimes and so when using the string as part of the
162162
* LIKE phrase of a select statement, should be escaped.
163-
* \param const QString in The input string to make safe.
164163
* \returns The string made safe for SQL statements.
165164
*/
166-
const QString sqlSafeString( const QString &theSQL );
165+
QString sqlSafeString( const QString &string ) const;
167166

168167
/**
169168
* \brief converts the CRS group to a SQL expression fragment

0 commit comments

Comments
 (0)