+ else if ( d->contextMenuEnabled &&
+ e->button() == Qt::RightButton ) {
+ if ( TagNode* node = d->tagAt( e->pos() ) ) {
+ KMenu menu;
+ QAction* a = menu.addAction( KIcon( "edit-delete" ), i18nc( "@action:menu", "Delete tag '%1'", node->text ) );
+ if ( menu.exec( e->globalPos() ) == a &&
+ KMessageBox::questionYesNo( this, i18n( "Do you really want to delete tag '%1'", node->text ) ) == KMessageBox::Yes ) {
+ if ( d->selectionEnabled &&
+ node->selected ) {
+ node->selected = false;
+ emit tagToggled( node->tag, false );
+ }
+ node->tag.remove();
+ d->nodes.removeAll( *node );
+ d->rebuildCloud();
+ }
+ }
+ }