Make annotations tooltip more explicit

This commit is contained in:
Harrissou Sant-anna 2022-10-17 15:30:25 +02:00 committed by Nyall Dawson
parent 220806ef5a
commit e39e88b537

View File

@ -179,7 +179,7 @@ QList<int> QgsAnnotationItemGuiRegistry::itemMetadataIds() const
void QgsAnnotationItemGuiRegistry::addDefaultItems()
{
addAnnotationItemGuiMetadata( new QgsAnnotationItemGuiMetadata( QStringLiteral( "polygon" ),
QObject::tr( "Polygon" ),
QObject::tr( "Polygon Annotation" ),
QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddPolygon.svg" ) ),
[ = ]( QgsAnnotationItem * item )->QgsAnnotationItemBaseWidget *
{
@ -193,7 +193,7 @@ void QgsAnnotationItemGuiRegistry::addDefaultItems()
} ) );
addAnnotationItemGuiMetadata( new QgsAnnotationItemGuiMetadata( QStringLiteral( "linestring" ),
QObject::tr( "Line" ),
QObject::tr( "Line Annotation" ),
QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddPolyline.svg" ) ),
[ = ]( QgsAnnotationItem * item )->QgsAnnotationItemBaseWidget *
{
@ -207,7 +207,7 @@ void QgsAnnotationItemGuiRegistry::addDefaultItems()
} ) );
addAnnotationItemGuiMetadata( new QgsAnnotationItemGuiMetadata( QStringLiteral( "marker" ),
QObject::tr( "Marker" ),
QObject::tr( "Marker Annotation" ),
QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddMarker.svg" ) ),
[ = ]( QgsAnnotationItem * item )->QgsAnnotationItemBaseWidget *
{
@ -221,7 +221,7 @@ void QgsAnnotationItemGuiRegistry::addDefaultItems()
} ) );
addAnnotationItemGuiMetadata( new QgsAnnotationItemGuiMetadata( QStringLiteral( "pointtext" ),
QObject::tr( "Text at Point" ),
QObject::tr( "Text Annotation at Point" ),
QgsApplication::getThemeIcon( QStringLiteral( "/mActionText.svg" ) ),
[ = ]( QgsAnnotationItem * item )->QgsAnnotationItemBaseWidget *
{