[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: help needed on virtual functions
From:       Pierre Stirnweiss <pierre.stirnweiss_koffice () gadz ! org>
Date:       2005-06-26 8:06:57
Message-ID: 200506261006.57931.pierre.stirnweiss_koffice () gadz ! org
[Download RAW message or body]

On Sunday 26 June 2005 00:11, Rob Buis wrote:
> Hi Pierre,
>
> Could you send me a patch? That would make it easier for me to
> see what is wrong.
> Cheers,
>

Thanks, but the problem is solved : I forgot to add the class name in front of 
the method in the implementation. Thanks Casper.
Sorry to have bothered all of you with a newby mistake.

Pierre

> Rob.
>
> On Sat, Jun 25, 2005 at 07:34:33PM +0200, Pierre
> Stirnweiss
>
> wrote:
> > Here is the inheritance scheme of some objects in Karbon
> >
> > VEllipse child of VPath child of VObject
> > VPolygon child of VPath child of VObject
> >
> > I want have implemented a function: QMap<QString, int>
> > getPropertyTypeList() in VEllipse and VPolygon,....
> >
> > In Karbon view selectionChanged, a VObject pointer is created but the
> > real object is a shape ( a VEllipse or VPolygon for my example) : VObject
> > *obj = part()->document().selection()->objects().getFirst();
> >
> > I want to call the getPropertyTypeList() method on this VObject (this
> > call should call the getPropertyTypeList method of the real object:
> > polygon or Ellipse). I have therefore declared in VObject header :
> > virtual QMap<QString, int> getPropertyTypeList(). Same in VPath header.
> >
> > However on link I have the following error:
> >
> > shapes/.libs/libkarbonshapes.a(vpolygon.o)(.text+0xe00): In function
> >
> > `getPropertyTypeList()':
> > : multiple definition of `getPropertyTypeList()'
> >
> > shapes/.libs/libkarbonshapes.a(vellipse.o)(.text+0x1a00): first defined
> > here collect2: ld returned 1 exit status
> > make[3]: *** [libkarboncommon.la] Error 1
> >
> >
> > What have I done wrong?
> >
> > Thanks for the help
> >
> > Pierre
> >
> > _______________________________________________
> > koffice-devel mailing list
> > koffice-devel@kde.org
> > https://mail.kde.org/mailman/listinfo/koffice-devel
>
> _______________________________________________
> koffice-devel mailing list
> koffice-devel@kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel
>
> ---------------------------------------------------------------------------
>------------ Wanadoo vous informe que cet  e-mail a ete controle par
> l'anti-virus mail. Aucun virus connu a ce jour par nos services n'a ete
> detecte.

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic