Skip to content

Commit ea4f61f

Browse files
committedJan 5, 2018
Dox and spelling
1 parent 43aff9b commit ea4f61f

File tree

7 files changed

+40
-11
lines changed

7 files changed

+40
-11
lines changed
 

‎python/core/layout/qgsabstractlayoutiterator.sip

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@
1111
class QgsAbstractLayoutIterator
1212
{
1313
%Docstring
14-
*************************************************************************
15-
*
16-
This program is free software; you can redistribute it and/or modify *
17-
it under the terms of the GNU General Public License as published by *
18-
the Free Software Foundation; either version 2 of the License, or *
19-
(at your option) any later version. *
20-
*
21-
**************************************************************************
14+
An abstract base class for QgsLayout based classes which can be exported by QgsLayoutExporter.
15+
16+
.. versionadded:: 3.0
2217
%End
2318

2419
%TypeHeaderCode

‎python/core/layout/qgslayoutatlas.sip

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ Iterates to the previous feature, returning false if no previous feature exists.
292292
.. seealso:: :py:func:`last()`
293293

294294
.. seealso:: :py:func:`first()`
295+
296+
.. seealso:: :py:func:`seekTo()`
295297
%End
296298

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

305307
.. seealso:: :py:func:`first()`
308+
309+
.. seealso:: :py:func:`seekTo()`
306310
%End
307311

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

316320
.. seealso:: :py:func:`last()`
321+
322+
.. seealso:: :py:func:`seekTo()`
317323
%End
318324

319325
bool seekTo( int feature );
326+
%Docstring
327+
Seeks to the specified ``feature`` number.
328+
329+
.. seealso:: :py:func:`first()`
330+
331+
.. seealso:: :py:func:`previous()`
332+
333+
.. seealso:: :py:func:`next()`
334+
335+
.. seealso:: :py:func:`last()`
336+
%End
320337

321338
void refreshCurrentFeature();
322339
%Docstring

‎python/core/layout/qgslayoutitemlegend.sip

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ Returns the legend's renderer settings object.
490490

491491
public slots:
492492

493-
void refresh();
493+
virtual void refresh();
494+
494495
virtual void refreshDataDefinedProperty( const QgsLayoutObject::DataDefinedProperty property = QgsLayoutObject::AllProperties );
495496

496497

‎src/core/layout/qgsabstractlayoutiterator.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121

2222
class QgsLayout;
2323

24+
/**
25+
* \ingroup core
26+
* \class QgsAbstractLayoutIterator
27+
* \brief An abstract base class for QgsLayout based classes which can be exported by QgsLayoutExporter.
28+
* \since QGIS 3.0
29+
*/
2430
class CORE_EXPORT QgsAbstractLayoutIterator
2531
{
2632

‎src/core/layout/qgslayoutatlas.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ class CORE_EXPORT QgsLayoutAtlas : public QObject, public QgsAbstractLayoutItera
258258
* \see next()
259259
* \see last()
260260
* \see first()
261+
* \see seekTo()
261262
*/
262263
bool previous();
263264

@@ -266,6 +267,7 @@ class CORE_EXPORT QgsLayoutAtlas : public QObject, public QgsAbstractLayoutItera
266267
* \see next()
267268
* \see previous()
268269
* \see first()
270+
* \see seekTo()
269271
*/
270272
bool last();
271273

@@ -274,9 +276,17 @@ class CORE_EXPORT QgsLayoutAtlas : public QObject, public QgsAbstractLayoutItera
274276
* \see next()
275277
* \see previous()
276278
* \see last()
279+
* \see seekTo()
277280
*/
278281
bool first();
279282

283+
/**
284+
* Seeks to the specified \a feature number.
285+
* \see first()
286+
* \see previous()
287+
* \see next()
288+
* \see last()
289+
*/
280290
bool seekTo( int feature );
281291

282292
/**

‎src/core/layout/qgslayoutitemlegend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ class CORE_EXPORT QgsLayoutItemLegend : public QgsLayoutItem
446446

447447
public slots:
448448

449-
void refresh();
449+
void refresh() override;
450450
void refreshDataDefinedProperty( const QgsLayoutObject::DataDefinedProperty property = QgsLayoutObject::AllProperties ) override;
451451

452452
protected:

‎tests/src/python/test_qgsreport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def testchildSections(self):
6262
self.assertIsNone(r.childSection(1))
6363
self.assertIsNone(r.childSection(0))
6464

65-
# try deleting non-existant childSections
65+
# try deleting non-existent childSections
6666
r.removeChildAt(-1)
6767
r.removeChildAt(0)
6868
r.removeChildAt(100)

0 commit comments

Comments
 (0)
Please sign in to comment.