Skip to content

Commit

Permalink
Dox updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 18, 2017
1 parent 7f06667 commit 4e0e038
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
9 changes: 9 additions & 0 deletions python/core/layout/qgslayoutitemshape.sip
Expand Up @@ -64,6 +64,9 @@ class QgsLayoutItemRectangularShape : QgsLayoutItemShape

static QgsLayoutItemRectangularShape *create( QgsLayout *layout, const QVariantMap &settings ) /Factory/;
%Docstring
Returns a new rectangular item for the specified ``layout``.

The caller takes responsibility for deleting the returned object.
:rtype: QgsLayoutItemRectangularShape
%End

Expand Down Expand Up @@ -107,6 +110,9 @@ class QgsLayoutItemEllipseShape : QgsLayoutItemShape

static QgsLayoutItemEllipseShape *create( QgsLayout *layout, const QVariantMap &settings ) /Factory/;
%Docstring
Returns a new ellipse item for the specified ``layout``.

The caller takes responsibility for deleting the returned object.
:rtype: QgsLayoutItemEllipseShape
%End

Expand Down Expand Up @@ -137,6 +143,9 @@ class QgsLayoutItemTriangleShape : QgsLayoutItemShape

static QgsLayoutItemTriangleShape *create( QgsLayout *layout, const QVariantMap &settings ) /Factory/;
%Docstring
Returns a new triangle item for the specified ``layout``.

The caller takes responsibility for deleting the returned object.
:rtype: QgsLayoutItemTriangleShape
%End

Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutcontext.h
Expand Up @@ -26,7 +26,7 @@ class QgsFeature;
class QgsVectorLayer;

/**
* \ingroup Layout
* \ingroup core
* \class QgsLayoutContext
* \brief Stores information relating to the current context and rendering settings for a layout.
* \since QGIS 3.0
Expand Down
15 changes: 15 additions & 0 deletions src/core/layout/qgslayoutitemshape.h
Expand Up @@ -79,6 +79,11 @@ class CORE_EXPORT QgsLayoutItemRectangularShape : public QgsLayoutItemShape
explicit QgsLayoutItemRectangularShape( QgsLayout *layout );
virtual int type() const override { return QgsLayoutItemRegistry::LayoutRectangle; }

/**
* Returns a new rectangular item for the specified \a layout.
*
* The caller takes responsibility for deleting the returned object.
*/
static QgsLayoutItemRectangularShape *create( QgsLayout *layout, const QVariantMap &settings ) SIP_FACTORY;

/**
Expand Down Expand Up @@ -120,6 +125,11 @@ class CORE_EXPORT QgsLayoutItemEllipseShape : public QgsLayoutItemShape
explicit QgsLayoutItemEllipseShape( QgsLayout *layout );
virtual int type() const override { return QgsLayoutItemRegistry::LayoutEllipse; }

/**
* Returns a new ellipse item for the specified \a layout.
*
* The caller takes responsibility for deleting the returned object.
*/
static QgsLayoutItemEllipseShape *create( QgsLayout *layout, const QVariantMap &settings ) SIP_FACTORY;

protected:
Expand Down Expand Up @@ -147,6 +157,11 @@ class CORE_EXPORT QgsLayoutItemTriangleShape : public QgsLayoutItemShape
explicit QgsLayoutItemTriangleShape( QgsLayout *layout );
virtual int type() const override { return QgsLayoutItemRegistry::LayoutTriangle; }

/**
* Returns a new triangle item for the specified \a layout.
*
* The caller takes responsibility for deleting the returned object.
*/
static QgsLayoutItemTriangleShape *create( QgsLayout *layout, const QVariantMap &settings ) SIP_FACTORY;

protected:
Expand Down

0 comments on commit 4e0e038

Please sign in to comment.