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)<br><br>Pierre<br><br><br>
<div class="gmail_quote">On Sun, Jan 30, 2011 at 2:24 PM, Pierre Stirnweiss <span dir="ltr"><<a href="mailto:pstirnweiss@googlemail.com">pstirnweiss@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
i don't know if this code compiles on other platform. this is the result of several iterative trials to solve the problem<br><br>i think i'll try the separate header file solution.<br><font color="#888888"><br>Pierre</font><div>
<div></div><div class="h5"><br><br><br><div class="gmail_quote">
On Sun, Jan 30, 2011 at 2:19 PM, Johannes Simon <span dir="ltr"><<a href="mailto:johannes.simon@gmail.com" target="_blank">johannes.simon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;">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<div>
<br></div><div><pre>class CustomStylePrivate::CustomStylePrivate : public QSharedData
{
public:
QString name;
StyleType type;
};
</pre><div><br></div><div>and not simply</div><div><br></div><div><pre>class CustomStylePrivate : public QSharedData
{
public:
QString name;
StyleType type;
};</pre></div><div><br></div><div>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?</div>
<div><br></div><div>Johannes</div><div><div><br></div><div><br><div><div>Am 30.01.2011 um 09:54 schrieb Pierre Stirnweiss:</div><br><blockquote type="cite"><div><div></div><div>Here is the error: <a href="http://paste.kde.org/3643/" target="_blank">http://paste.kde.org/3643/</a><br>
Here is the header: <a href="http://paste.kde.org/3641/" target="_blank">http://paste.kde.org/3641/</a><br>Here is the cpp: <a href="http://paste.kde.org/3642/" target="_blank">http://paste.kde.org/3642/</a><br>
<br>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.<br><br>I just don't know what else to do.<br><br>Thanks,<br><br>
PierreSt<br></div></div>
_______________________________________________<br>calligra-devel mailing list<br><a href="mailto:calligra-devel@kde.org" target="_blank">calligra-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org" target="_blank">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>