mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Update composer widget after text change. Ticket #5862
This commit is contained in:
parent
7cec992b99
commit
4e36df0670
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user