Skip to content
Permalink
Browse files

[FEATURE] add QgisInterface::setActiveLayer()

also fixes #2167


git-svn-id: http://svn.osgeo.org/qgis/trunk@12358 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 7, 2009
1 parent 43183fa commit 35e9935e8e2c502924566f2d1f266518c94c68b6
@@ -52,6 +52,10 @@ class QgisInterface : QObject
//! Get pointer to the active layer (layer selected in the legend)
virtual QgsMapLayer *activeLayer()=0;

//! Get pointer to the active layer (layer selected in the legend)
//! added in 1.4
virtual bool setActiveLayer( QgsMapLayer * )=0;

//! Add an icon to the plugins toolbar
virtual int addToolBarIcon(QAction *qAction) =0;
//! Remove an action (icon) from the plugin toolbar

0 comments on commit 35e9935

Please sign in to comment.
You can’t perform that action at this time.