[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: help needed on virtual functions
From: Rob Buis <rwlbuis () xs4all ! nl>
Date: 2005-06-25 22:11:35
Message-ID: 20050625221135.GA85378 () xs4all ! nl
[Download RAW message or body]
Hi Pierre,
Could you send me a patch? That would make it easier for me to
see what is wrong.
Cheers,
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic