Skip to content

Commit

Permalink
Fix doc coverage test for "added in XXX" check
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Aug 1, 2016
1 parent 71ca330 commit 38b63ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions python/core/qgsfeedback.sip
@@ -1,8 +1,6 @@

/** \ingroup core
* @note added in QGIS 3.0
* Base class for feedback objects to be used for cancellation of something running in a worker thread.
*
* The class may be used as is or it may be subclassed for extended functionality
* for a particular operation (e.g. report progress or pass some data for preview).
*
Expand All @@ -18,6 +16,7 @@
* subclass and available with QgsMapLayerRenderer::feedback() method. When a map rendering job
* gets cancelled, the cancel() method is called on the feedback object of all layers.
*
* @note added in QGIS 3.0
*/
class QgsFeedback : QObject
{
Expand Down
3 changes: 1 addition & 2 deletions src/core/qgsfeedback.h
Expand Up @@ -19,9 +19,7 @@
#include <QObject>

/** \ingroup core
* @note added in QGIS 3.0
* Base class for feedback objects to be used for cancellation of something running in a worker thread.
*
* The class may be used as is or it may be subclassed for extended functionality
* for a particular operation (e.g. report progress or pass some data for preview).
*
Expand All @@ -37,6 +35,7 @@
* subclass and available with QgsMapLayerRenderer::feedback() method. When a map rendering job
* gets cancelled, the cancel() method is called on the feedback object of all layers.
*
* @note added in QGIS 3.0
*/
class CORE_EXPORT QgsFeedback : public QObject
{
Expand Down
3 changes: 2 additions & 1 deletion src/core/raster/qgsrasterpipe.h
Expand Up @@ -19,9 +19,10 @@
#define QGSRASTERPIPE_H

#include <QImage>
#include <QMap>
#include <QObject>
#include "qgsrasterinterface.h"

class QgsRasterInterface;
class QgsRasterRenderer;
class QgsRasterResampleFilter;
class QgsBrightnessContrastFilter;
Expand Down
7 changes: 5 additions & 2 deletions tests/src/python/utilities.py
Expand Up @@ -545,12 +545,15 @@ def parseClassElem(self, e):
# test for "added in QGIS xxx" string
d = e.find('detaileddescription')
found_version_added = False
if d.find('para'):
for s in d.find('para').getiterator('simplesect'):
for para in d.getiterator('para'):
for s in para.getiterator('simplesect'):
if s.get('kind') == 'note':
for p in s.getiterator('para'):
if p.text and p.text.lower().startswith('added in'):
found_version_added = True
break
if found_version_added:
break

return documentable_members, documented_members, undocumented_members, bindable_members, has_brief_description, found_version_added

Expand Down

1 comment on commit 38b63ed

@nyalldawson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.