[Qgis-developer] connect to QgsLegend::currentItemChanged
Radim Blazek
radim.blazek at gmail.com
Wed Mar 29 11:32:35 EST 2006
On 3/27/06, Marco Hugentobler <marco.hugentobler at autoform.ch> wrote:
> Hi Radim,
> I can't remember how this was done in earlier versions.
> We probably need to have a method in QgsInterface which returns a
> pointer to the legend (and one in QgisApp too). Or maybe even better,
> methods for doing the connection /disconnection such that plugins do not
> have to know the legend class.
I added
signal QgsLegend::currentLayerChanged(QgsMapLayer *)
QgsLegend * QgisApp::legend()
signal QgisIface::currentLayerChanged ( QgsMapLayer * )
but emit QgisIface::currentLayerChanged does not want to compile.
I don't know why.
Radim
> Marco
>
> Radim Blazek wrote:
>
> >How can I connect to QgsLegend::currentItemChanged from plugin?
> >
> >Radim
> >_______________________________________________
> >Qgis-developer mailing list
> >Qgis-developer at lists.qgis.org
> >http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
> >
> >
> >
>
>
More information about the Qgis-developer
mailing list