AlignJustify is not a tested value, but the compiler warning
can throw you off, so best to keep it quiet.
Change-Id: I0b3d717dfe2c11fc4367e7eceb5b83009c4e0a30
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
break;
}
- qreal xoff;
+ qreal xoff = 0;
switch (horizontalAlignment) {
case QQuickTextEdit::AlignLeft:
- xoff = 0;
break;
case QQuickTextEdit::AlignHCenter:
xoff = (texteditObject->width() - secondLine.naturalTextWidth()) / 2;
case QQuickTextEdit::AlignRight:
xoff = texteditObject->width() - secondLine.naturalTextWidth();
break;
- case QQuickTextEdit::AlignJustify:
+ default:
break;
}
int pos = texteditObject->positionAt(texteditObject->width()/2, y0);