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

List:       kde-panel-devel
Subject:    Re: Bug or feature ?
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2008-04-28 18:36:52
Message-ID: 200804281236.52561.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 28 April 2008, Gilles CHAUVIN wrote:
> bool MyDataEngine::sourceRequestEvent(const QString &source)
> {
>     Q_UNUSED(source);
>     setData("foo", "key1", "value");
>     setData("foo", "key2", "value");
>     setData("foo", "key3", "value");
>     return true;
> }
>
>
> Now, if I launch plasmaengineexplorer and ask for "test" in the
> "Source Name" LineEdit, I will only see the 1st "key1->value". Typing
> anything but "test" will give the expected result.

i'm not sure if this is your problem, but there's an obvious bug in your code 
that should be fixed first. from the apidox for sourceRequestEvent:

         * The name of the data source (e.g. the source parameter passed into
         * setData) must be the same as the name passed to sourceRequestEvent
         * otherwise the requesting visualization may not receive notice of a
         * data update.

so it should either be setData(source, ...) on each of those lines, or:

if (source == "foo") {
    // your setData calls
}

if the problem still persists, please send me your engine code to look at. 
it's much easier to actually just build and test locally.

-- 
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 Trolltech

["signature.asc" (application/pgp-signature)]

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


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

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