Skip to content

Commit 22272c6

Browse files
committedMar 31, 2017
Improve sip bindings
1 parent 6208986 commit 22272c6

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed
 

‎python/core/qgsactionscope.sip

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,31 @@
44
*****************************************************************/
55

66

7-
87
class QgsActionScope
98
{
9+
%Docstring
10+
\ingroup core
11+
An action scope defines a "place" for an action to be shown and may add
12+
additional expression variables.
13+
Each QgsAction can be available in one or several action scopes.
14+
15+
Examples:
16+
---------
17+
18+
<dl>
19+
<dt>Canvas</dt>
20+
<dd>Show for canvas tools. Adds `@clicked_x` and `@clicked_y` in map coordinates.</dd>
21+
<dt>Feature</dt>
22+
<dd>Show in feature specific places like the attribute table or feature
23+
form.</dd>
24+
<dt>Field</dt>
25+
<dd>Show in context menus for individual fields (e.g. attribute table). Adds `@field_index`, `@field_name` and `@field_value`.</dd>
26+
<dt>Layer</dt>
27+
<dd>Show in attribute table and work on the layer or selection.</dd>
28+
</dl>
29+
30+
@note Added in QGIS 3.0
31+
%End
1032

1133
%TypeHeaderCode
1234
#include "qgsactionscope.h"

‎src/core/qgsactionscope.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
*
4343
* @note Added in QGIS 3.0
4444
*/
45-
4645
class CORE_EXPORT QgsActionScope
4746
{
4847
public:
@@ -125,6 +124,6 @@ class CORE_EXPORT QgsActionScope
125124
QgsExpressionContextScope mExpressionContextScope;
126125
};
127126

128-
CORE_EXPORT uint qHash( const QgsActionScope &key, uint seed = 0 ); // SIP_SKIP
127+
CORE_EXPORT uint qHash( const QgsActionScope &key, uint seed = 0 ) SIP_SKIP;
129128

130129
#endif // QGSACTIONSCOPE_H

0 commit comments

Comments
 (0)
Please sign in to comment.