mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 03:30:20 +00:00
Distinguish straight lines and polygons in texts
This commit is contained in:
parent
d197c9a109
commit
2e6edb5e2c
|
@ -120,7 +120,10 @@ void AnnotsPropertiesDialog::setCaptionTextbyAnnotType()
|
|||
captiontext = i18n( "Inline Note Properties" );
|
||||
break;
|
||||
case Okular::Annotation::ALine:
|
||||
captiontext = i18n( "Line Properties" );
|
||||
if ( ((Okular::LineAnnotation*)m_annot)->linePoints().count() == 2 )
|
||||
captiontext = i18n( "Straight Line Properties" );
|
||||
else
|
||||
captiontext = i18n( "Polygon Properties" );
|
||||
break;
|
||||
case Okular::Annotation::AGeom:
|
||||
captiontext = i18n( "Geometry Properties" );
|
||||
|
|
|
@ -74,7 +74,10 @@ QString captionForAnnotation( const Okular::Annotation * ann )
|
|||
ret = i18n( "Inline Note" );
|
||||
break;
|
||||
case Okular::Annotation::ALine:
|
||||
ret = i18n( "Line" );
|
||||
if( ( (Okular::LineAnnotation*)ann )->linePoints().count() == 2 )
|
||||
ret = i18n( "Straight Line" );
|
||||
else
|
||||
ret = i18n( "Polygon" );
|
||||
break;
|
||||
case Okular::Annotation::AGeom:
|
||||
ret = i18n( "Geometry" );
|
||||
|
|
Loading…
Reference in a new issue