Programming questions

Sven Langkamp longamp at reallygood.de
Sun Jul 10 12:12:29 CEST 2005


Am Sonntag, 10. Juli 2005 12:08 schrieb Michael Thaler:
> On Sunday 10 July 2005 10:52, Sven Langkamp wrote:
> > To keep the [] you could use this:
> >
> > KisPoint& KisPolygon::operator[](int i)
> > {
> >         return m_data[i];
> > }
> >
> > Maybe it would be better to inherit KisPolygon from KisPointVector.
>
> I think there is no class KisPointVector. Doing grep -r KisPointVector
> *|less I only find things like
>
> typedef QValueVector<KisPoint> KisPointVector;
>         KisPointVector m_points;
>
> in kis_too_polygon.h and so on.
>
> But thanks, I know I did something stupid:-)
>
> Michael

typedef QValueVector<KisPoint> KisPointVector;
class KisPolygon : public KisPointVector

is the same as

class KisPolygon : public QValueVector<KisPoint>


More information about the kimageshop mailing list