Skip to content
Permalink
Browse files
BTW use the svg icon
  • Loading branch information
lbartoletti authored and nyalldawson committed Jun 21, 2021
1 parent 74bbbc5 commit 8ad8673b84c3de3dde7fe1a7c7bdef6fc9f3f90f
@@ -1,5 +1,6 @@
<RCC>
<qresource prefix="/geometrychecker">
<file>icons/geometrychecker.svg</file>
<file>icons/geometrychecker.png</file>
<file>icons/tooltip.png</file>
</qresource>
@@ -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 );
@@ -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.