<br><br><div class="gmail_quote">On Tue, May 26, 2009 at 10:12 PM, Aaron J. Seigo <span dir="ltr"><<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>></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 Tuesday 26 May 2009, Shantanu Tushar Jha wrote:<br>
> On Mon, May 25, 2009 at 8:16 PM, Aaron J. Seigo <<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>> wrote:<br>
> > On Monday 25 May 2009, Shantanu Tushar Jha wrote:<br>
> > > (line number 36) KParts::Part *newPart = KService::createInstance(<br>
> ><br>
> > <a href="http://offers.at" target="_blank">offers.at</a><br>
> ><br>
> > > (0));<br>
> ><br>
> > <a href="http://offers.at" target="_blank">offers.at</a>(0).createInstance(parentWidget);<br>
><br>
> Oops, I tried this<br>
><br>
> KParts::Part *newPart = <a href="http://offers.at" target="_blank">offers.at</a>(0).createInstance(parentWidget);<br>
><br>
> and now make says -<br>
><br>
> playground/base/plasma/plasmate/editors/editpage.cpp:36: error: ‘const<br>
> class KSharedPtr<KService>’ has no member named ‘createInstance’<br>
<br>
</div>sorry, should've been <a href="http://offers.at" target="_blank">offers.at</a>(0)->createInstance(parentWidget) (-> rather<br>
than .)</blockquote><div> </div><div>I had already tried using <a href="http://offers.at/" target="_blank">offers.at</a>(0)->createInstance(parentWidget). But still make complained that -<br><br>playground/base/plasma/plasmate/editors/editpage.cpp:36: error: no matching function for call to ‘KService::createInstance(<unresolved overloaded function type>) const’<br>
<br>I tried a lot to find what the problem is, but couldn't get a solution. API page on KService says -<br><table border="0" cellpadding="0" cellspacing="2"><tbody><tr></tr><tr><td valign="top"><em>parentWidget</em> </td>
<td>A parent widget for the service. This is used e. g. for parts </td></tr></tbody></table>But, I'm not sure what do I have to pass as parentWidget ?<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;">
<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>