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

List:       kde-panel-devel
Subject:    Re: Code snippet review for plasmate
From:       Shantanu Tushar Jha <jhahoneyk () gmail ! com>
Date:       2009-05-26 13:34:48
Message-ID: ec556b640905260622k5ac6ed31w7dee05c0b669961a () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Mon, May 25, 2009 at 8:16 PM, Aaron J. Seigo <aseigo@kde.org> wrote:

> On Monday 25 May 2009, Shantanu Tushar Jha wrote:
> > (line number 36) KParts::Part *newPart = KService::createInstance(
> offers.at
> > (0));
>
> offers.at(0).createInstance(parentWidget);


Oops, I tried this

KParts::Part *newPart = offers.at(0).createInstance(parentWidget);

and now make says -

playground/base/plasma/plasmate/editors/editpage.cpp:36: error: ‘const class
KSharedPtr<KService>’ has no member named ‘createInstance’

:( Hints ?


>
>
> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Qt Software
>
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>


-- 
Shantanu Tushar    (GMT +0530)
http://www.shantanutushar.com

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Mon, May 25, 2009 at 8:16 PM, Aaron J. Seigo \
<span dir="ltr">&lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class="im">On Monday 25 \
May 2009, Shantanu Tushar Jha wrote:<br> &gt; (line number 36) KParts::Part *newPart \
= KService::createInstance(<a href="http://offers.at" \
target="_blank">offers.at</a><br> &gt; (0));<br>
<br>
</div><a href="http://offers.at" \
target="_blank">offers.at</a>(0).createInstance(parentWidget);</blockquote><div><br>Oops, \
I tried this<br><br>KParts::Part *newPart = <a \
href="http://offers.at">offers.at</a>(0).createInstance(parentWidget);<br> <br>and \
now make says -<br><br>playground/base/plasma/plasmate/editors/editpage.cpp:36: \
error: ‘const class KSharedPtr&lt;KService&gt;’ has no member named \
‘createInstance’<br><br>:( Hints ?<br> <br></div><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;"> <br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43<br>
<br>
KDE core developer sponsored by Qt Software<br>
<br>
</div></div><br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br><br clear="all"><br>-- <br>Shantanu Tushar    (GMT \
+0530)<br><a href="http://www.shantanutushar.com">http://www.shantanutushar.com</a><br>




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


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

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