Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tags instead of searchTags
  • Loading branch information
signedav committed Dec 5, 2019
1 parent 5409bd4 commit 153a5ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions python/gui/auto_generated/qgsexpressionbuilderwidget.sip.in
Expand Up @@ -201,7 +201,7 @@ preview result and for populating the list of available functions and variables.
QgsExpressionItem::ItemType type = QgsExpressionItem::ExpressionNode,
bool highlightedItem = false, int sortOrder = 1,
QIcon icon = QIcon(),
const QStringList &searchTags = QStringList() );
const QStringList &tags = QStringList() );
%Docstring
Registers a node item for the expression builder.

Expand All @@ -213,7 +213,7 @@ Registers a node item for the expression builder.
:param highlightedItem: set to ``True`` to make the item highlighted, which inserts a bold copy of the item at the top level
:param sortOrder: sort ranking for item
:param icon: custom icon to show for item
:param searchTags: tags to find function
:param tags: tags to find function
%End

bool isExpressionValid();
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -506,12 +506,12 @@ void QgsExpressionBuilderWidget::registerItem( const QString &group,
const QString &label,
const QString &expressionText,
const QString &helpText,
QgsExpressionItem::ItemType type, bool highlightedItem, int sortOrder, QIcon icon, const QStringList &searchTags )
QgsExpressionItem::ItemType type, bool highlightedItem, int sortOrder, QIcon icon, const QStringList &tags )
{
QgsExpressionItem *item = new QgsExpressionItem( label, expressionText, helpText, type );
item->setData( label, Qt::UserRole );
item->setData( sortOrder, QgsExpressionItem::CUSTOM_SORT_ROLE );
item->setData( searchTags, QgsExpressionItem::SEARCH_TAGS_ROLE );
item->setData( tags, QgsExpressionItem::SEARCH_TAGS_ROLE );
item->setIcon( icon );

// Look up the group and insert the new function.
Expand Down
6 changes: 3 additions & 3 deletions src/gui/qgsexpressionbuilderwidget.h
Expand Up @@ -217,14 +217,14 @@ class GUI_EXPORT QgsExpressionBuilderWidget : public QWidget, private Ui::QgsExp
* \param highlightedItem set to TRUE to make the item highlighted, which inserts a bold copy of the item at the top level
* \param sortOrder sort ranking for item
* \param icon custom icon to show for item
* \param searchTags tags to find function
* \param tags tags to find function
*/
void registerItem( const QString &group, const QString &label, const QString &expressionText,
const QString &helpText = QString(),
QgsExpressionItem::ItemType type = QgsExpressionItem::ExpressionNode,
bool highlightedItem = false, int sortOrder = 1,
QIcon icon = QIcon(),
const QStringList &searchTags = QStringList() );
const QStringList &tags = QStringList() );

bool isExpressionValid();

Expand Down Expand Up @@ -403,7 +403,7 @@ class GUI_EXPORT QgsExpressionBuilderWidget : public QWidget, private Ui::QgsExp
* \param type The type of the expression item.
* \param highlightedItem set to TRUE to make the item highlighted, which inserts a bold copy of the item at the top level
* \param sortOrder sort ranking for item
* \param searchTags tags to find function
* \param tags tags to find function
*/
void registerItemForAllGroups( const QStringList &groups, const QString &label, const QString &expressionText,
const QString &helpText = QString(),
Expand Down

0 comments on commit 153a5ff

Please sign in to comment.