Skip to content

Commit

Permalink
Update composer widget after text change. Ticket #5862
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 26, 2012
1 parent 7cec992 commit 4e36df0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/composer/qgscomposerlabelwidget.cpp
Expand Up @@ -176,6 +176,7 @@ void QgsComposerLabelWidget::setGuiElementValues()
{
blockAllSignals( true );
mTextEdit->setText( mComposerLabel->text() );
mTextEdit->moveCursor( QTextCursor::End, QTextCursor::MoveAnchor );
mMarginDoubleSpinBox->setValue( mComposerLabel->margin() );
mTopRadioButton->setChecked( mComposerLabel->vAlign() == Qt::AlignTop );
mMiddleRadioButton->setChecked( mComposerLabel->vAlign() == Qt::AlignVCenter );
Expand Down
1 change: 1 addition & 0 deletions src/core/composer/qgscomposerlabel.cpp
Expand Up @@ -64,6 +64,7 @@ void QgsComposerLabel::paint( QPainter* painter, const QStyleOptionGraphicsItem*
void QgsComposerLabel::setText( const QString& text )
{
mText = text;
emit itemChanged();
}

QString QgsComposerLabel::displayText() const
Expand Down

0 comments on commit 4e36df0

Please sign in to comment.