Skip to content

Commit 094cef7

Browse files
committed
Sipify and astyle
1 parent 332c8a5 commit 094cef7

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

python/core/qgsaction.sip.in

+9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Create a new QgsAction
4242
:param description: A human readable description string
4343
:param command: The action text. Its interpretation depends on the type
4444
:param capture: If this is set to true, the output will be captured when an action is run
45+
:param enabledOnlyWhenEditable: if true then action is only enable in editmode
4546
%End
4647

4748
QgsAction( ActionType type, const QString &description, const QString &action, const QString &icon, bool capture, const QString &shortTitle = QString(), const QSet<QString> &actionScopes = QSet<QString>(), const QString &notificationMessage = QString() );
@@ -56,6 +57,7 @@ Create a new QgsAction
5657
:param shortTitle: A short string used to label user interface elements like buttons
5758
:param actionScopes: A set of scopes in which this action will be available
5859
:param notificationMessage: A particular message which reception will trigger the action
60+
:param enabledOnlyWhenEditable: if true then action is only enable in editmode
5961
%End
6062

6163
QString name() const;
@@ -118,6 +120,13 @@ The action type
118120
Whether to capture output for display when this action is run
119121
%End
120122

123+
124+
bool isEnabledOnlyWhenEditable() const;
125+
%Docstring
126+
Return whether only enabled in editable mode
127+
%End
128+
129+
121130
bool runable() const;
122131
%Docstring
123132
Checks if the action is runable on the current platform

python/gui/qgsactionmenu.sip.in

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ Change the feature on which actions are performed
7171

7272
:param feature: A feature. Will not take ownership. It's the callers responsibility to keep the feature
7373
as long as the menu is displayed and the action is running.
74+
%End
75+
76+
void setMode( const QgsAttributeForm::Mode mode );
77+
%Docstring
78+
Change the mode of the actions
79+
80+
:param mode: The mode of the attribute form
7481
%End
7582

7683
void setExpressionContextScope( const QgsExpressionContextScope &scope );

python/gui/qgsattributeform.sip.in

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class QgsAttributeForm : QWidget
2626
MultiEditMode,
2727
SearchMode,
2828
AggregateSearchMode,
29+
IdentifyMode
2930
};
3031

3132
enum FilterType

src/core/qgsapplication.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1404,8 +1404,8 @@ void QgsApplication::setCustomVariables( const QVariantMap &variables )
14041404
QgsSettings settings;
14051405

14061406
QVariantMap::const_iterator it = variables.constBegin();
1407-
settings.beginGroup("variables");
1408-
settings.remove("");
1407+
settings.beginGroup( "variables" );
1408+
settings.remove( "" );
14091409
for ( ; it != variables.constEnd(); ++it )
14101410
{
14111411
settings.setValue( it.key(), it.value() );

0 commit comments

Comments
 (0)