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

List:       kde-panel-devel
Subject:    Re: setData & QVariant
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2009-11-02 20:38:53
Message-ID: 200911021338.53700.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On October 31, 2009, Petri Damstén wrote:
> On Friday 30 October 2009 19:53:29 Aaron J. Seigo wrote:
> > On October 30, 2009, Petri Damstén wrote:
> > > I'm trying to fix BUG 212342. It seems like if variable is put to
> > > QVariant and then as a parameter to setData it does not work. If same
> > > variable is
> >
> > odd ...
> >
> > what does a simple app like this give you:
> >
> > #include <qvariant.h>
> > #include <iostream>
> > using namespace std;
> >
> > int main()
> > {
> >     QVariant v;
> >     cout << v.isNull() << " " << v.isValid() << endl;
> >     return 0;
> > }
> 
> test$ ./mytest
> 1 0

so it isn't in QVariant (which would have surprised me), and the code in 
DataEngine hasn't changed recently. the check in setData is for (v.isNull() || 
!v.isValid()), perhaps you can put some debug in there to see what is 
happening?

-- 
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 Development Frameworks

["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