[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Code snippet review for plasmate
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2009-05-26 16:42:21
Message-ID: 200905261042.23274.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Tuesday 26 May 2009, Shantanu Tushar Jha wrote:
> 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'
sorry, should've been offers.at(0)->createInstance(parentWidget) (-> rather
than .)
--
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
["signature.asc" (application/pgp-signature)]
_______________________________________________
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