Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use QStringLiteral
  • Loading branch information
elpaso committed Dec 17, 2019
1 parent 3759c6a commit e4b4459
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions python/gui/auto_generated/qgsexpressionbuilderwidget.sip.in
Expand Up @@ -221,29 +221,29 @@ Adds the current expression to the given ``collection``.
By default it is saved to the collection "generic".
%End

void loadRecent( const QString &collection = "generic" );
void loadRecent( const QString &collection = QStringLiteral( "generic" ) );
%Docstring
Loads the recent expressions from the given ``collection``.
By default it is loaded from the collection "generic".
%End

void loadStored( const QString &collection = "generic" );
void loadStored( const QString &collection = QStringLiteral( "generic" ) );
%Docstring
Loads the stored expressions from the given ``collection``.
By default it is loaded from the collection "generic".

.. versionadded:: 3.12
%End

void saveToStored( const QString &label, const QString expression, const QString &helpText, const QString &collection = "generic" );
void saveToStored( const QString &label, const QString expression, const QString &helpText, const QString &collection = QStringLiteral( "generic" ) );
%Docstring
Stores the ``expression`` in the given ``collection`` with given ``label`` and ``helpText``.
By default it is saved to the collection "generic".

.. versionadded:: 3.12
%End

void removeFromStored( const QString &name, const QString &collection = "generic" );
void removeFromStored( const QString &name, const QString &collection = QStringLiteral( "generic" ) );
%Docstring
Removes the expression ``name`` from the stored expressions in the given ``collection``.
By default it is removed from the collection "generic".
Expand Down
8 changes: 4 additions & 4 deletions src/gui/qgsexpressionbuilderwidget.h
Expand Up @@ -234,28 +234,28 @@ class GUI_EXPORT QgsExpressionBuilderWidget : public QWidget, private Ui::QgsExp
* Loads the recent expressions from the given \a collection.
* By default it is loaded from the collection "generic".
*/
void loadRecent( const QString &collection = "generic" );
void loadRecent( const QString &collection = QStringLiteral( "generic" ) );

/**
* Loads the stored expressions from the given \a collection.
* By default it is loaded from the collection "generic".
* \since QGIS 3.12
*/
void loadStored( const QString &collection = "generic" );
void loadStored( const QString &collection = QStringLiteral( "generic" ) );

/**
* Stores the \a expression in the given \a collection with given \a label and \a helpText.
* By default it is saved to the collection "generic".
* \since QGIS 3.12
*/
void saveToStored( const QString &label, const QString expression, const QString &helpText, const QString &collection = "generic" );
void saveToStored( const QString &label, const QString expression, const QString &helpText, const QString &collection = QStringLiteral( "generic" ) );

/**
* Removes the expression \a name from the stored expressions in the given \a collection.
* By default it is removed from the collection "generic".
* \since QGIS 3.12
*/
void removeFromStored( const QString &name, const QString &collection = "generic" );
void removeFromStored( const QString &name, const QString &collection = QStringLiteral( "generic" ) );

/**
* Create a new file in the function editor
Expand Down

0 comments on commit e4b4459

Please sign in to comment.