[mythtv] Qt 3.0.5 and QVariant::isNull ()
Matt Zimmerman
mdz at debian.org
Mon Mar 10 22:49:39 EST 2003
On Mon, Mar 10, 2003 at 06:33:20PM -0800, Bruce Markey wrote:
> The Qt 3.0.5 documentation doesn't have an isNull for
> QVariant so compiles fail with 3.0.5 on:
>
> tv_rec.cpp:969: no matching function for call to `QVariant::isNull ()'
>
> I worked around this by changing
>
> if (query.value(0).isNull())
> to:
> if (query.value(0) == "")
>
> but is this a vaild subsitiution? It looks like it's going
> to check for an int later and 0 would be a valid value.
I haven't looked at the context, but in general I don't think this is
correct.
--
- mdz
More information about the mythtv-dev
mailing list