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

List:       calligra-devel
Subject:    Re: Help,
From:       Pierre Stirnweiss <pstirnweiss () googlemail ! com>
Date:       2011-01-30 13:24:58
Message-ID: AANLkTim8MT+N8m1Qtv_mvVuxzpfeaO2pC64t_ZKmbNGn () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 <johannes.simon@gmail.com>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
> calligra-devel@kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel
>
>
>
> _______________________________________________
> calligra-devel mailing list
> calligra-devel@kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel
>
>

[Attachment #5 (text/html)]

i don&#39;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&#39;ll try the \
separate header file solution.<br><br>Pierre<br><br><br><div class="gmail_quote"> On \
Sun, Jan 30, 2011 at 2:19 PM, Johannes Simon <span dir="ltr">&lt;<a \
href="mailto:johannes.simon@gmail.com">johannes.simon@gmail.com</a>&gt;</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&#39;t use a \
forward-declaration of CustomStylePrivate to declare a \
QSharedDataPointer&lt;CustomStylePrivate&gt; 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 &quot;CustomStyle::Private&quot; (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 class="h5">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&#39;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">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>



_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel


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

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