Skip to content
Permalink
Browse files
remove unused signal
  • Loading branch information
alexbruy committed Apr 29, 2012
1 parent a90f4f1 commit a7adf8d57bf365c1db4c1db229521e596091fa1f
Showing with 0 additions and 32 deletions.
  1. +0 −28 src/plugins/interpolation/qgsinterpolationplugin.cpp
  2. +0 −4 src/plugins/interpolation/qgsinterpolationplugin.h
@@ -43,12 +43,9 @@ void QgsInterpolationPlugin::initGui()
if ( mIface )
{
mInterpolationAction = new QAction( QIcon( ":/raster-interpolate.png" ), tr( "&Interpolation" ), 0 );
//~ setCurrentTheme( "" );
QObject::connect( mInterpolationAction, SIGNAL( triggered() ), this, SLOT( showInterpolationDialog() ) );
mIface->addRasterToolBarIcon( mInterpolationAction );
mIface->addPluginToRasterMenu( tr( "&Interpolation" ), mInterpolationAction );
// this is called when the icon theme is changed
connect( mIface, SIGNAL( currentThemeChanged( QString ) ), this, SLOT( setCurrentTheme( QString ) ) );
}
}

@@ -65,31 +62,6 @@ void QgsInterpolationPlugin::showInterpolationDialog()
dialog.exec();
}

//~ //! Set icons to the current theme
//~ void QgsInterpolationPlugin::setCurrentTheme( QString theThemeName )
//~ {
//~ Q_UNUSED( theThemeName );
//~ QString myCurThemePath = QgsApplication::activeThemePath() + "/plugins/interpolation.png";
//~ QString myDefThemePath = QgsApplication::defaultThemePath() + "/plugins/interpolation.png";
//~ QString myQrcPath = ":/interpolation.png";
//~ if ( QFile::exists( myCurThemePath ) )
//~ {
//~ mInterpolationAction->setIcon( QIcon( myCurThemePath ) );
//~ }
//~ else if ( QFile::exists( myDefThemePath ) )
//~ {
//~ mInterpolationAction->setIcon( QIcon( myDefThemePath ) );
//~ }
//~ else if ( QFile::exists( myQrcPath ) )
//~ {
//~ mInterpolationAction->setIcon( QIcon( myQrcPath ) );
//~ }
//~ else
//~ {
//~ mInterpolationAction->setIcon( QIcon() );
//~ }
//~ }

QGISEXTERN QgisPlugin * classFactory( QgisInterface * theQgisInterfacePointer )
{
return new QgsInterpolationPlugin( theQgisInterfacePointer );
@@ -38,10 +38,6 @@ class QgsInterpolationPlugin: public QObject, public QgisPlugin
/**Unload the plugin and cleanup the GUI*/
void unload();

public slots:
//~ //! update the plugins theme when the app tells us its theme is changed
//~ void setCurrentTheme( QString theThemeName );

private slots:
void showInterpolationDialog();

0 comments on commit a7adf8d

Please sign in to comment.