diff --git a/src/plugins/qmldesigner/components/propertyeditor/contextpanetextwidget.cpp b/src/plugins/qmldesigner/components/propertyeditor/contextpanetextwidget.cpp index 5ef7a5e276b691f78d34004d8fb0b437780cffc0..5f003c32fb3f22048d2ce3e6b2017d7d2ee8cd41 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/contextpanetextwidget.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/contextpanetextwidget.cpp @@ -299,14 +299,14 @@ void ContextPaneTextWidget::onHorizontalAlignmentChanged() { QString alignment; if (ui->centerHAlignmentButton->isChecked()) - alignment = QLatin1String("AlignHCenter"); + alignment = QLatin1String("Text.AlignHCenter"); else if (ui->leftAlignmentButton->isChecked()) - alignment = QLatin1String("AlignLeft"); + alignment = QLatin1String("Text.AlignLeft"); else if (ui->rightAlignmentButton->isChecked()) - alignment = QLatin1String("AlignRight"); + alignment = QLatin1String("Text.AlignRight"); if (m_horizontalAlignment != alignment) { m_horizontalAlignment = alignment; - if (alignment == QLatin1String("AlignLeft")) + if (alignment == QLatin1String("Text.AlignLeft")) emit removeProperty(QLatin1String("horizontalAlignment")); else emit propertyChanged(QLatin1String("horizontalAlignment"), alignment); @@ -325,14 +325,14 @@ void ContextPaneTextWidget::onVerticalAlignmentChanged() { QString alignment; if (ui->centerVAlignmentButton->isChecked()) - alignment = QLatin1String("AlignVCenter"); + alignment = QLatin1String("Text.AlignVCenter"); else if (ui->topAlignmentButton->isChecked()) - alignment = QLatin1String("AlignTop"); + alignment = QLatin1String("Text.AlignTop"); else if (ui->bottomAlignmentButton->isChecked()) - alignment = QLatin1String("AlignBottom"); + alignment = QLatin1String("Text.AlignBottom"); if (m_verticalAlignment != alignment) { m_verticalAlignment = alignment; - if (alignment == QLatin1String("AlignTop")) + if (alignment == QLatin1String("Text.AlignTop")) emit removeProperty(QLatin1String("verticalAlignment")); else emit propertyChanged(QLatin1String("verticalAlignment"), alignment);