it does not seem possible to move the private classes to a separate private header, because some data members of those classes are actually define in the Style class (which is defined in the Style.h)
Pierre On Sun, Jan 30, 2011 at 2:24 PM, Pierre Stirnweiss < [email protected]> wrote: > i don't know if this code compiles on other platform. this is the result of > several iterative trials to solve the problem > > i think i'll try the separate header file solution. > > Pierre > > > > On Sun, Jan 30, 2011 at 2:19 PM, Johannes Simon > <[email protected]>wrote: > >> Looks to me like you can't use a forward-declaration of CustomStylePrivate >> to declare a QSharedDataPointer<CustomStylePrivate> with. Try putting the >> class definition of CustomStylePrivate in its own header (something_p.h) and >> include it in Style.h instead of using this forward declaration. And why is >> it >> >> class CustomStylePrivate::CustomStylePrivate : public QSharedData >> { >> public: >> QString name; >> StyleType type; >> }; >> >> >> and not simply >> >> class CustomStylePrivate : public QSharedData >> { >> public: >> QString name; >> StyleType type; >> }; >> >> >> This seems odd to me, also since in the comment above the definition it >> says "CustomStyle::Private" (so which of the three is it really supposed to >> be now?). Does this code compile on other platforms? >> >> Johannes >> >> >> Am 30.01.2011 um 09:54 schrieb Pierre Stirnweiss: >> >> Here is the error: http://paste.kde.org/3643/ >> Here is the header: http://paste.kde.org/3641/ >> Here is the cpp: http://paste.kde.org/3642/ >> >> These files (header and cpp) are already a modified version of the >> original tables/Style.h and Style.cpp, with one of the trials i have already >> done. >> >> I just don't know what else to do. >> >> Thanks, >> >> PierreSt >> _______________________________________________ >> calligra-devel mailing list >> [email protected] >> https://mail.kde.org/mailman/listinfo/calligra-devel >> >> >> >> _______________________________________________ >> calligra-devel mailing list >> [email protected] >> https://mail.kde.org/mailman/listinfo/calligra-devel >> >> >
_______________________________________________ calligra-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/calligra-devel
