+#ifdef HAVE_NEPOMUK
+ // FIXME: replace with KMetaData::File once we have it again
+ d->files.clear();
+ bool first = true;
+ QList<Nepomuk::Resource> fileRes;
+ Q_FOREACH( KUrl url, urls ) {
+ Nepomuk::Resource file( url.url(), Soprano::Vocabulary::Xesam::File() );
+// file.setLocation(url.url());
+ d->files.insert( url, file );
+ fileRes.append( file );
+
+ if ( !first &&
+ d->ratingWidget->rating() != file.rating() ) {
+ d->ratingWidget->setRating( 0 ); // reset rating
+ }
+ else if ( first ) {
+ d->ratingWidget->setRating( file.rating() );
+ }
+
+ if ( !first &&
+ d->editComment->toPlainText() != file.description() ) {
+ d->loadComment( QString() );
+ }
+ else if ( first ) {
+ d->loadComment( file.description() );
+ }
+ first = false;
+ }
+ d->tagWidget->setTaggedResources(fileRes);