Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BTW use the svg icon
  • Loading branch information
lbartoletti authored and nyalldawson committed Jun 21, 2021
1 parent 74bbbc5 commit 8ad8673
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/plugins/geometry_checker/pluginres.qrc
@@ -1,5 +1,6 @@
<RCC>
<qresource prefix="/geometrychecker">
<file>icons/geometrychecker.svg</file>
<file>icons/geometrychecker.png</file>
<file>icons/tooltip.png</file>
</qresource>
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/geometry_checker/qgsgeometrycheckerplugin.cpp
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/geometry_checker/qgsgeometrycheckerplugin.h
Expand Up @@ -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

0 comments on commit 8ad8673

Please sign in to comment.