void QgsMapToolAnnotation::canvasDoubleClickEvent( QMouseEvent * e ) { QgsAnnotationItem* item = itemAtPos( e->posF() ); if ( !item ) { return; } QDialog* itemEditor = createItemEditor( item ); if ( itemEditor ) { itemEditor->exec(); delete itemEditor; } }
void QgsMapToolAnnotation::canvasDoubleClickEvent( QgsMapMouseEvent *e ) { QgsMapCanvasAnnotationItem *item = itemAtPos( e->pos() ); if ( !item ) { return; } QDialog *itemEditor = createItemEditor( item ); if ( itemEditor ) { if ( itemEditor->exec() ) QgsProject::instance()->setDirty( true ); delete itemEditor; } }