void Nepomuk::TagAnnotation::setTag( const Tag& tag ) { // We do not save the resource itself for one simple reason: it would // mean that non-existing tags would stay in memory and thus, be // handled as existing ones by libnepomuk if(tag.exists()) d->m_tagUri = tag.resourceUri(); else d->m_tag = tag.genericLabel(); setLabel( tag.genericLabel() ); setIcon( KIcon( tag.genericIcon() ) ); }