void QgsInterpolationPlugin::initGui() { if ( mIface ) { mInterpolationAction = new QAction( QIcon( ":/interpolator/interpolation.png" ), tr( "&Interpolation" ), 0 ); QObject::connect( mInterpolationAction, SIGNAL( triggered() ), this, SLOT( showInterpolationDialog() ) ); mIface->addToolBarIcon( mInterpolationAction ); mIface->addPluginToMenu( tr( "&Interpolation" ), mInterpolationAction ); } }
void QgsInterpolationPlugin::initGui() { if ( mIface ) { mInterpolationAction = new QAction( QIcon( ":/raster-interpolate.png" ), tr( "&Interpolation" ), nullptr ); mInterpolationAction->setObjectName( "mInterpolationAction" ); QObject::connect( mInterpolationAction, SIGNAL( triggered() ), this, SLOT( showInterpolationDialog() ) ); mIface->addRasterToolBarIcon( mInterpolationAction ); mIface->addPluginToRasterMenu( tr( "&Interpolation" ), mInterpolationAction ); } }
void QgsInterpolationPlugin::initGui() { if ( mIface ) { mInterpolationAction = new QAction( QIcon(), tr( "&Interpolation" ), 0 ); setCurrentTheme( "" ); QObject::connect( mInterpolationAction, SIGNAL( triggered() ), this, SLOT( showInterpolationDialog() ) ); mIface->addToolBarIcon( mInterpolationAction ); mIface->addPluginToMenu( tr( "&Interpolation" ), mInterpolationAction ); // this is called when the icon theme is changed connect( mIface, SIGNAL( currentThemeChanged( QString ) ), this, SLOT( setCurrentTheme( QString ) ) ); } }