[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/nepomuk-kde/annotation/lib
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-05-06 11:59:22
Message-ID: 20100506115922.7BCFBAC8B1 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1123613 by trueg:
Fixed SimpleAnnotation::exists()
M +1 -8 simpleannotation.cpp
--- trunk/playground/base/nepomuk-kde/annotation/lib/simpleannotation.cpp #1123612:1123613
@@ -106,14 +106,7 @@
bool Nepomuk::SimpleAnnotation::exists( Resource res ) const
{
- // FIXME: add Resource::hasProperty( QUrl, Vairant ) method
- Variant v = res.property( d->property.uri() );
- if ( v == d->value )
- return true;
- else if ( v.isList() )
- return v.toVariantList().contains( d->value );
- else
- return false;
+ return res.hasProperty( d->property, d->value );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic