diff --git a/src/plugins/geometry_checker/pluginres.qrc b/src/plugins/geometry_checker/pluginres.qrc index 93d65cada484..ee15d5b78c38 100644 --- a/src/plugins/geometry_checker/pluginres.qrc +++ b/src/plugins/geometry_checker/pluginres.qrc @@ -1,5 +1,6 @@ + icons/geometrychecker.svg icons/geometrychecker.png icons/tooltip.png diff --git a/src/plugins/geometry_checker/qgsgeometrycheckerplugin.cpp b/src/plugins/geometry_checker/qgsgeometrycheckerplugin.cpp index c340b04a59fe..b4b5d954f104 100644 --- a/src/plugins/geometry_checker/qgsgeometrycheckerplugin.cpp +++ b/src/plugins/geometry_checker/qgsgeometrycheckerplugin.cpp @@ -29,7 +29,7 @@ void QgsGeometryCheckerPlugin::initGui() { mDialog = new QgsGeometryCheckerDialog( mIface, mIface->mainWindow() ); mDialog->setWindowModality( Qt::NonModal ); - mMenuAction = new QAction( QIcon( ":/geometrychecker/icons/geometrychecker.png" ), QApplication::translate( "QgsGeometryCheckerPlugin", "Check Geometries…" ), this ); + mMenuAction = new QAction( QIcon( sPluginIcon ), QApplication::translate( "QgsGeometryCheckerPlugin", "Check Geometries…" ), this ); connect( mMenuAction, &QAction::triggered, mDialog, &QWidget::show ); connect( mMenuAction, &QAction::triggered, mDialog, &QWidget::raise ); mIface->addPluginToVectorMenu( QString(), mMenuAction ); diff --git a/src/plugins/geometry_checker/qgsgeometrycheckerplugin.h b/src/plugins/geometry_checker/qgsgeometrycheckerplugin.h index a2d61b1d7cf4..6ed7071a502b 100644 --- a/src/plugins/geometry_checker/qgsgeometrycheckerplugin.h +++ b/src/plugins/geometry_checker/qgsgeometrycheckerplugin.h @@ -46,6 +46,6 @@ static const QString sDescription = QApplication::translate( "QgsGeometryChecker static const QString sCategory = QApplication::translate( "QgsGeometryCheckerPlugin", "Vector" ); static const QString sPluginVersion = QApplication::translate( "QgsGeometryCheckerPlugin", "Version 0.1" ); static const QgisPlugin::PluginType sPluginType = QgisPlugin::UI; -static const QString sPluginIcon = QStringLiteral( ":/geometrychecker/icons/geometrychecker.png" ); +static const QString sPluginIcon = QStringLiteral( ":/geometrychecker/icons/geometrychecker.svg" ); #endif // QGS_GEOMETRY_CHECKER_PLUGIN_H