diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-08-11 14:30:35 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-08-12 12:24:52 +0200 |
commit | 509125dbf423aa9019b7a427448248062bb0ba4d (patch) | |
tree | df0f4f103b1d0fe84dd4bda1f40cdd0c7acfa146 | |
parent | 0fa72dede0af076ed0d92c3a680a3370fc6a23e6 (diff) |
Silence harmless compiler warning.
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>
-rw-r--r-- | tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp index 1ffd67cbf1..741a724632 100644 --- a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp +++ b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp @@ -2389,10 +2389,9 @@ void tst_qquicktextedit::positionAt() break; } - qreal xoff; + qreal xoff = 0; switch (horizontalAlignment) { case QQuickTextEdit::AlignLeft: - xoff = 0; break; case QQuickTextEdit::AlignHCenter: xoff = (texteditObject->width() - secondLine.naturalTextWidth()) / 2; @@ -2400,7 +2399,7 @@ void tst_qquicktextedit::positionAt() case QQuickTextEdit::AlignRight: xoff = texteditObject->width() - secondLine.naturalTextWidth(); break; - case QQuickTextEdit::AlignJustify: + default: break; } int pos = texteditObject->positionAt(texteditObject->width()/2, y0); |