Skip to content
Permalink
Browse files

Update composer widget after text change. Ticket #5862

  • Loading branch information
mhugent committed Jun 26, 2012
1 parent 7cec992 commit 4e36df0670e62055205294b97454948520c598b4
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/app/composer/qgscomposerlabelwidget.cpp
  2. +1 −0 src/core/composer/qgscomposerlabel.cpp
@@ -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 );
@@ -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

0 comments on commit 4e36df0

Please sign in to comment.
You can’t perform that action at this time.