[Qgis-developer] connect to QgsLegend::currentItemChanged
Radim Blazek
radim.blazek at gmail.com
Thu Mar 30 02:34:31 EST 2006
On 3/30/06, Tom Elwertowski <telwertowski at comcast.net> wrote:
> Radim Blazek wrote:
> > 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.
>
> Hi Radim,
>
> QgisIface needs the Q_OBJECT macro when signals are defined. You also
> have to add qgisiface.moc.cpp to the list of moc files to be generated
> in Makefile.am. The emit should then compile.
Thanks, I forgot about the Makefile.am.
Radim
> Tom
> _______________________________________________
> 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