Skip to content

Commit

Permalink
Remove default QGIS rocks text
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Oct 22, 2015
1 parent 76ba841 commit c7eef14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgstextannotationitem.cpp
Expand Up @@ -19,7 +19,7 @@
#include <QDomDocument>
#include <QPainter>

QgsTextAnnotationItem::QgsTextAnnotationItem( QgsMapCanvas* canvas ): QgsAnnotationItem( canvas ), mDocument( new QTextDocument( QObject::tr( "QGIS rocks!" ) ) )
QgsTextAnnotationItem::QgsTextAnnotationItem( QgsMapCanvas* canvas ): QgsAnnotationItem( canvas ), mDocument( new QTextDocument( QObject::tr( "" ) ) )

This comment has been minimized.

Copy link
@nyalldawson

nyalldawson Oct 22, 2015

Collaborator

Tr("") ? Interesting to see how that one's translated ;)

This comment has been minimized.

Copy link
@NathanW2

NathanW2 via email Oct 22, 2015

Author Member
{
mDocument->setUseDesignMetrics( true );
}
Expand Down Expand Up @@ -101,7 +101,7 @@ void QgsTextAnnotationItem::readXML( const QDomDocument& doc, const QDomElement&
{
delete mDocument;
mDocument = new QTextDocument;
mDocument->setHtml( itemElem.attribute( "document", QObject::tr( "<html>QGIS rocks!</html>" ) ) );
mDocument->setHtml( itemElem.attribute( "document", QObject::tr( "" ) ) );
QDomElement annotationElem = itemElem.firstChildElement( "AnnotationItem" );
if ( !annotationElem.isNull() )
{
Expand Down

1 comment on commit c7eef14

@nyalldawson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+100!

Please sign in to comment.