Update composer widget after text change. Ticket #5862

This commit is contained in:
Marco Hugentobler 2012-06-26 09:16:17 +02:00
parent 7cec992b99
commit 4e36df0670
2 changed files with 2 additions and 0 deletions

View File

@ -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 );

View File

@ -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