Skip to content
Permalink
Browse files

Use QStringLiteral

  • Loading branch information
elpaso committed Dec 17, 2019
1 parent 3759c6a commit e4b4459af0c0b1d20fa8b8f03e29f78d8a94bebc
@@ -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".
@@ -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

0 comments on commit e4b4459

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