Skip to content

Commit fa92f41

Browse files
committedOct 24, 2018
add missing doxymentation to gui/layout
1 parent 3663de9 commit fa92f41

14 files changed

+38
-12
lines changed
 

‎python/gui/auto_generated/layout/qgslayoutdesignerinterface.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Selects the specified ``items``.
9191
%Docstring
9292
Toggles whether the atlas preview mode should be ``enabled`` in the designer.
9393

94-
.. seealso:: :py:func:`atlasPreviewModeEnabled`
94+
.. seealso:: :py:func:`atlasPreviewEnabled`
9595

9696
.. versionadded:: 3.4
9797
%End

‎python/gui/auto_generated/layout/qgslayoutitemguiregistry.sip.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ Creates a new empty item GUI registry.
178178

179179
QgsLayoutItemGuiRegistry is not usually directly created, but rather accessed through
180180
:py:func:`QgsGui.layoutItemGuiRegistry()`
181-
182-
.. seealso:: :py:func:`populate`
183181
%End
184182

185183
~QgsLayoutItemGuiRegistry();

‎python/gui/auto_generated/layout/qgslayoutitemwidget.sip.in

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,31 @@ This widget can be embedded into other layout item widgets.
150150
#include "qgslayoutitemwidget.h"
151151
%End
152152
public:
153+
153154
QgsLayoutItemPropertiesWidget( QWidget *parent, QgsLayoutItem *item );
155+
%Docstring
156+
Constructs a QgsLayoutItemPropertiesWidget with a ``parent`` and for the given layout ``item``.
157+
%End
154158

155159
QgsLayoutItem::ReferencePoint positionMode() const;
160+
%Docstring
161+
Returns the position mode
162+
%End
156163

157164
void showBackgroundGroup( bool showGroup );
165+
%Docstring
166+
Determines if the background of the group box shall be shown
167+
%End
158168

159169
void showFrameGroup( bool showGroup );
170+
%Docstring
171+
Determines if the frame of the group box shall be shown
172+
%End
160173

161174
void setItem( QgsLayoutItem *item );
175+
%Docstring
176+
Sets the layout item
177+
%End
162178

163179
protected slots:
164180
void initializeDataDefinedButtons();

‎python/gui/auto_generated/layout/qgslayoutviewmouseevent.sip.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ The ``ignoreItems`` argument can be used to specify a list of items to avoid sna
5555
QPointF layoutPoint() const;
5656
%Docstring
5757
Returns the event point location in layout coordinates.
58-
59-
.. seealso:: :py:func:`pos`
6058
%End
6159

6260
QPointF snappedPoint() const;
@@ -65,8 +63,6 @@ Returns the snapped event point location in layout coordinates. The snapped poin
6563
all possible snapping methods, such as snapping to grid or guide lines.
6664

6765
.. seealso:: :py:func:`isSnapped`
68-
69-
.. seealso:: :py:func:`pos`
7066
%End
7167

7268
bool isSnapped() const;

‎python/gui/auto_generated/layout/qgslayoutviewtooladditem.sip.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Layout view tool for adding items to a layout.
2222
public:
2323

2424
QgsLayoutViewToolAddItem( QgsLayoutView *view /TransferThis/ );
25+
%Docstring
26+
Constructs a QgsLayoutViewToolAddItem for the given layout ``view``.
27+
%End
2528

2629
int itemMetadataId() const;
2730
%Docstring

‎python/gui/auto_generated/layout/qgslayoutviewtooladdnodeitem.sip.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Layout view tool for adding node based items to a layout.
2222
public:
2323

2424
QgsLayoutViewToolAddNodeItem( QgsLayoutView *view /TransferThis/ );
25+
%Docstring
26+
Constructs a QgsLayoutViewToolAddNodeItem for the given layout ``view``.
27+
%End
2528

2629
int itemMetadataId() const;
2730
%Docstring

‎python/gui/auto_generated/layout/qgslayoutviewtoolselect.sip.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ Constructor for QgsLayoutViewToolSelect.
4444

4545

4646
void setLayout( QgsLayout *layout );
47+
%Docstring
48+
Sets the a ``layout``.
49+
%End
4750

4851
};
4952

‎src/gui/layout/qgslayoutdesignerinterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class GUI_EXPORT QgsLayoutDesignerInterface: public QObject
111111
/**
112112
* Toggles whether the atlas preview mode should be \a enabled in the designer.
113113
*
114-
* \see atlasPreviewModeEnabled()
114+
* \see atlasPreviewEnabled()
115115
* \since QGIS 3.4
116116
*/
117117
virtual void setAtlasPreviewEnabled( bool enabled ) = 0;

‎src/gui/layout/qgslayoutitemguiregistry.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,6 @@ class GUI_EXPORT QgsLayoutItemGuiRegistry : public QObject
339339
*
340340
* QgsLayoutItemGuiRegistry is not usually directly created, but rather accessed through
341341
* QgsGui::layoutItemGuiRegistry().
342-
*
343-
* \see populate()
344342
*/
345343
QgsLayoutItemGuiRegistry( QObject *parent = nullptr );
346344

‎src/gui/layout/qgslayoutitemwidget.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,22 @@ class GUI_EXPORT QgsLayoutItemPropertiesWidget: public QWidget, private Ui::QgsL
193193
{
194194
Q_OBJECT
195195
public:
196+
197+
/**
198+
* Constructs a QgsLayoutItemPropertiesWidget with a \a parent and for the given layout \a item.
199+
*/
196200
QgsLayoutItemPropertiesWidget( QWidget *parent, QgsLayoutItem *item );
197201

202+
//! Returns the position mode
198203
QgsLayoutItem::ReferencePoint positionMode() const;
199204

205+
//! Determines if the background of the group box shall be shown
200206
void showBackgroundGroup( bool showGroup );
201207

208+
//! Determines if the frame of the group box shall be shown
202209
void showFrameGroup( bool showGroup );
203210

211+
//! Sets the layout item
204212
void setItem( QgsLayoutItem *item );
205213

206214
protected slots:

‎src/gui/layout/qgslayoutviewmouseevent.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,13 @@ class GUI_EXPORT QgsLayoutViewMouseEvent : public QMouseEvent
6767

6868
/**
6969
* Returns the event point location in layout coordinates.
70-
* \see pos()
7170
*/
7271
QPointF layoutPoint() const;
7372

7473
/**
7574
* Returns the snapped event point location in layout coordinates. The snapped point will consider
7675
* all possible snapping methods, such as snapping to grid or guide lines.
7776
* \see isSnapped()
78-
* \see pos()
7977
*/
8078
QPointF snappedPoint() const { return mSnappedPoint; }
8179

‎src/gui/layout/qgslayoutviewtooladditem.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class GUI_EXPORT QgsLayoutViewToolAddItem : public QgsLayoutViewTool
3434

3535
public:
3636

37+
//! Constructs a QgsLayoutViewToolAddItem for the given layout \a view.
3738
QgsLayoutViewToolAddItem( QgsLayoutView *view SIP_TRANSFERTHIS );
3839

3940
/**

‎src/gui/layout/qgslayoutviewtooladdnodeitem.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class GUI_EXPORT QgsLayoutViewToolAddNodeItem : public QgsLayoutViewTool
3434

3535
public:
3636

37+
//! Constructs a QgsLayoutViewToolAddNodeItem for the given layout \a view.
3738
QgsLayoutViewToolAddNodeItem( QgsLayoutView *view SIP_TRANSFERTHIS );
3839

3940
/**

‎src/gui/layout/qgslayoutviewtoolselect.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class GUI_EXPORT QgsLayoutViewToolSelect : public QgsLayoutViewTool
5858
SIP_SKIP QgsLayoutMouseHandles *mouseHandles();
5959
///@endcond
6060

61+
//! Sets the a \a layout.
6162
void setLayout( QgsLayout *layout );
6263

6364
private:

0 commit comments

Comments
 (0)
Please sign in to comment.