Skip to content

Commit

Permalink
Dox and spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent 43aff9b commit ea4f61f
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 11 deletions.
11 changes: 3 additions & 8 deletions python/core/layout/qgsabstractlayoutiterator.sip
Expand Up @@ -11,14 +11,9 @@
class QgsAbstractLayoutIterator
{
%Docstring
*************************************************************************
*
This program is free software; you can redistribute it and/or modify *
it under the terms of the GNU General Public License as published by *
the Free Software Foundation; either version 2 of the License, or *
(at your option) any later version. *
*
**************************************************************************
An abstract base class for QgsLayout based classes which can be exported by QgsLayoutExporter.

.. versionadded:: 3.0
%End

%TypeHeaderCode
Expand Down
17 changes: 17 additions & 0 deletions python/core/layout/qgslayoutatlas.sip
Expand Up @@ -292,6 +292,8 @@ Iterates to the previous feature, returning false if no previous feature exists.
.. seealso:: :py:func:`last()`

.. seealso:: :py:func:`first()`

.. seealso:: :py:func:`seekTo()`
%End

bool last();
Expand All @@ -303,6 +305,8 @@ Seeks to the last feature, returning false if no feature was found.
.. seealso:: :py:func:`previous()`

.. seealso:: :py:func:`first()`

.. seealso:: :py:func:`seekTo()`
%End

bool first();
Expand All @@ -314,9 +318,22 @@ Seeks to the first feature, returning false if no feature was found.
.. seealso:: :py:func:`previous()`

.. seealso:: :py:func:`last()`

.. seealso:: :py:func:`seekTo()`
%End

bool seekTo( int feature );
%Docstring
Seeks to the specified ``feature`` number.

.. seealso:: :py:func:`first()`

.. seealso:: :py:func:`previous()`

.. seealso:: :py:func:`next()`

.. seealso:: :py:func:`last()`
%End

void refreshCurrentFeature();
%Docstring
Expand Down
3 changes: 2 additions & 1 deletion python/core/layout/qgslayoutitemlegend.sip
Expand Up @@ -490,7 +490,8 @@ Returns the legend's renderer settings object.

public slots:

void refresh();
virtual void refresh();

virtual void refreshDataDefinedProperty( const QgsLayoutObject::DataDefinedProperty property = QgsLayoutObject::AllProperties );


Expand Down
6 changes: 6 additions & 0 deletions src/core/layout/qgsabstractlayoutiterator.h
Expand Up @@ -21,6 +21,12 @@

class QgsLayout;

/**
* \ingroup core
* \class QgsAbstractLayoutIterator
* \brief An abstract base class for QgsLayout based classes which can be exported by QgsLayoutExporter.
* \since QGIS 3.0
*/
class CORE_EXPORT QgsAbstractLayoutIterator
{

Expand Down
10 changes: 10 additions & 0 deletions src/core/layout/qgslayoutatlas.h
Expand Up @@ -258,6 +258,7 @@ class CORE_EXPORT QgsLayoutAtlas : public QObject, public QgsAbstractLayoutItera
* \see next()
* \see last()
* \see first()
* \see seekTo()
*/
bool previous();

Expand All @@ -266,6 +267,7 @@ class CORE_EXPORT QgsLayoutAtlas : public QObject, public QgsAbstractLayoutItera
* \see next()
* \see previous()
* \see first()
* \see seekTo()
*/
bool last();

Expand All @@ -274,9 +276,17 @@ class CORE_EXPORT QgsLayoutAtlas : public QObject, public QgsAbstractLayoutItera
* \see next()
* \see previous()
* \see last()
* \see seekTo()
*/
bool first();

/**
* Seeks to the specified \a feature number.
* \see first()
* \see previous()
* \see next()
* \see last()
*/
bool seekTo( int feature );

/**
Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitemlegend.h
Expand Up @@ -446,7 +446,7 @@ class CORE_EXPORT QgsLayoutItemLegend : public QgsLayoutItem

public slots:

void refresh();
void refresh() override;
void refreshDataDefinedProperty( const QgsLayoutObject::DataDefinedProperty property = QgsLayoutObject::AllProperties ) override;

protected:
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsreport.py
Expand Up @@ -62,7 +62,7 @@ def testchildSections(self):
self.assertIsNone(r.childSection(1))
self.assertIsNone(r.childSection(0))

# try deleting non-existant childSections
# try deleting non-existent childSections
r.removeChildAt(-1)
r.removeChildAt(0)
r.removeChildAt(100)
Expand Down

0 comments on commit ea4f61f

Please sign in to comment.