Skip to content

Commit

Permalink
remove unused signal
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Apr 29, 2012
1 parent a90f4f1 commit a7adf8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
28 changes: 0 additions & 28 deletions src/plugins/interpolation/qgsinterpolationplugin.cpp
Expand Up @@ -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 ) ) );
}
}

Expand All @@ -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 );
Expand Down
4 changes: 0 additions & 4 deletions src/plugins/interpolation/qgsinterpolationplugin.h
Expand Up @@ -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();

Expand Down

0 comments on commit a7adf8d

Please sign in to comment.