Skip to content

Commit 4e36df0

Browse files
committed
Update composer widget after text change. Ticket #5862
1 parent 7cec992 commit 4e36df0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/app/composer/qgscomposerlabelwidget.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ void QgsComposerLabelWidget::setGuiElementValues()
176176
{
177177
blockAllSignals( true );
178178
mTextEdit->setText( mComposerLabel->text() );
179+
mTextEdit->moveCursor( QTextCursor::End, QTextCursor::MoveAnchor );
179180
mMarginDoubleSpinBox->setValue( mComposerLabel->margin() );
180181
mTopRadioButton->setChecked( mComposerLabel->vAlign() == Qt::AlignTop );
181182
mMiddleRadioButton->setChecked( mComposerLabel->vAlign() == Qt::AlignVCenter );

src/core/composer/qgscomposerlabel.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ void QgsComposerLabel::paint( QPainter* painter, const QStyleOptionGraphicsItem*
6464
void QgsComposerLabel::setText( const QString& text )
6565
{
6666
mText = text;
67+
emit itemChanged();
6768
}
6869

6970
QString QgsComposerLabel::displayText() const

0 commit comments

Comments
 (0)