mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Make annotations tooltip more explicit
This commit is contained in:
parent
220806ef5a
commit
e39e88b537
@ -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 *
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user