Skip to content


Sipify and astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 24, 2018
1 parent 332c8a5 commit 094cef7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
9 changes: 9 additions & 0 deletions python/core/
Expand Up @@ -42,6 +42,7 @@ Create a new QgsAction
:param description: A human readable description string
:param command: The action text. Its interpretation depends on the type
:param capture: If this is set to true, the output will be captured when an action is run
:param enabledOnlyWhenEditable: if true then action is only enable in editmode

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() );
Expand All @@ -56,6 +57,7 @@ Create a new QgsAction
:param shortTitle: A short string used to label user interface elements like buttons
:param actionScopes: A set of scopes in which this action will be available
:param notificationMessage: A particular message which reception will trigger the action
:param enabledOnlyWhenEditable: if true then action is only enable in editmode

QString name() const;
Expand Down Expand Up @@ -118,6 +120,13 @@ The action type
Whether to capture output for display when this action is run

bool isEnabledOnlyWhenEditable() const;
Return whether only enabled in editable mode

bool runable() const;
Checks if the action is runable on the current platform
Expand Down
7 changes: 7 additions & 0 deletions python/gui/
Expand Up @@ -71,6 +71,13 @@ Change the feature on which actions are performed

:param feature: A feature. Will not take ownership. It's the callers responsibility to keep the feature
as long as the menu is displayed and the action is running.

void setMode( const QgsAttributeForm::Mode mode );
Change the mode of the actions

:param mode: The mode of the attribute form

void setExpressionContextScope( const QgsExpressionContextScope &scope );
Expand Down
1 change: 1 addition & 0 deletions python/gui/
Expand Up @@ -26,6 +26,7 @@ class QgsAttributeForm : QWidget

enum FilterType
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsapplication.cpp
Expand Up @@ -1404,8 +1404,8 @@ void QgsApplication::setCustomVariables( const QVariantMap &variables )
QgsSettings settings;

QVariantMap::const_iterator it = variables.constBegin();
settings.beginGroup( "variables" );
settings.remove( "" );
for ( ; it != variables.constEnd(); ++it )
settings.setValue( it.key(), it.value() );
Expand Down

0 comments on commit 094cef7

Please sign in to comment.