Skip to content

Commit

Permalink
Add icon for curved callouts
Browse files Browse the repository at this point in the history
(thanks to @DelazJ for the original commit)
  • Loading branch information
nirvn committed Jul 19, 2021
1 parent cfbc227 commit 2ac6672
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -647,6 +647,7 @@
<file>themes/default/labelingSingle.svg</file>
<file>themes/default/labelingRuleBased.svg</file>
<file>themes/default/labelingObstacle.svg</file>
<file>themes/default/labelingCalloutCurved.svg</file>
<file>themes/default/labelingCalloutSimple.svg</file>
<file>themes/default/labelingCalloutManhattan.svg</file>
<file>themes/default/repositoryConnected.svg</file>
Expand Down
17 changes: 17 additions & 0 deletions images/themes/default/labelingCalloutCurved.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/core/callouts/qgscalloutsregistry.cpp
Expand Up @@ -51,7 +51,7 @@ QgsCalloutRegistry::QgsCalloutRegistry()
// init registry with known callouts
addCalloutType( new QgsCalloutMetadata( QStringLiteral( "simple" ), QObject::tr( "Simple lines" ), QgsApplication::getThemeIcon( QStringLiteral( "labelingCalloutSimple.svg" ) ), QgsSimpleLineCallout::create ) );
addCalloutType( new QgsCalloutMetadata( QStringLiteral( "manhattan" ), QObject::tr( "Manhattan lines" ), QgsApplication::getThemeIcon( QStringLiteral( "labelingCalloutManhattan.svg" ) ), QgsManhattanLineCallout::create ) );
addCalloutType( new QgsCalloutMetadata( QStringLiteral( "curved" ), QObject::tr( "Curved lines" ), QgsApplication::getThemeIcon( QStringLiteral( "labelingCalloutSimple.svg" ) ), QgsCurvedLineCallout::create ) );
addCalloutType( new QgsCalloutMetadata( QStringLiteral( "curved" ), QObject::tr( "Curved lines" ), QgsApplication::getThemeIcon( QStringLiteral( "labelingCalloutCurved.svg" ) ), QgsCurvedLineCallout::create ) );
addCalloutType( new QgsCalloutMetadata( QStringLiteral( "balloon" ), QObject::tr( "Balloons" ), QgsApplication::getThemeIcon( QStringLiteral( "labelingCalloutManhattan.svg" ) ), QgsBalloonCallout::create ) );
}

Expand Down

0 comments on commit 2ac6672

Please sign in to comment.