Skip to content

Commit

Permalink
Fix "Metadata Search" tab toolTip in Data source Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and github-actions[bot] committed Sep 1, 2023
1 parent 4e42f4d commit 08496c4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/core/auto_generated/qgsiconutils.sip.in
Expand Up @@ -30,7 +30,8 @@ Returns the icon for a vector layer whose geometry ``type`` is provided.
static QIcon iconForGeometryType( Qgis::GeometryType typeGroup );
%Docstring
Returns the icon for a vector layer whose geometry ``typeGroup`` is provided.
1since QGIS 3.28

.. versionadded:: 3.28
%End

static QIcon iconPoint();
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsiconutils.h
Expand Up @@ -42,7 +42,7 @@ class CORE_EXPORT QgsIconUtils

/**
* Returns the icon for a vector layer whose geometry \a typeGroup is provided.
* 1since QGIS 3.28
* \since QGIS 3.28
*/
static QIcon iconForGeometryType( Qgis::GeometryType typeGroup );

Expand Down
5 changes: 5 additions & 0 deletions src/gui/qgslayermetadatasourceselectprovider.cpp
Expand Up @@ -34,6 +34,11 @@ QString QgsLayerMetadataSourceSelectProvider::text() const
return QObject::tr( "Metadata Search" );
}

QString QgsLayerMetadataSourceSelectProvider::toolTip() const
{
return QObject::tr( "Search and add layer metadata" );
}

QIcon QgsLayerMetadataSourceSelectProvider::icon() const
{
return QgsApplication::getThemeIcon( QStringLiteral( "search.svg" ) );
Expand Down
1 change: 1 addition & 0 deletions src/gui/qgslayermetadatasourceselectprovider.h
Expand Up @@ -39,6 +39,7 @@ class GUI_EXPORT QgsLayerMetadataSourceSelectProvider : public QgsSourceSelectPr
public:
QString providerKey() const override;
QString text() const override;
QString toolTip() const override;
QIcon icon() const override;
QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent, Qt::WindowFlags fl, QgsProviderRegistry::WidgetMode widgetMode ) const override;
int ordering() const override;
Expand Down

0 comments on commit 08496c4

Please sign in to comment.