Commit e62d228c authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyPane: bugfix

The scope is always needed
parent 18cd88a3
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment