Skip to content
Permalink
Browse files

Sipify and astyle

  • Loading branch information
nyalldawson committed Feb 24, 2018
1 parent 332c8a5 commit 094cef71402b89caab5f0f2410e0998a972067f4
@@ -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
%End

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
: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
%End

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


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


bool runable() const;
%Docstring
Checks if the action is runable on the current platform
@@ -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.
%End

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

:param mode: The mode of the attribute form
%End

void setExpressionContextScope( const QgsExpressionContextScope &scope );
@@ -26,6 +26,7 @@ class QgsAttributeForm : QWidget
MultiEditMode,
SearchMode,
AggregateSearchMode,
IdentifyMode
};

enum FilterType
@@ -1404,8 +1404,8 @@ void QgsApplication::setCustomVariables( const QVariantMap &variables )
QgsSettings settings;

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

0 comments on commit 094cef7

Please sign in to comment.
You can’t perform that action at this time.