summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorNikita Baryshnikov <nib952051@gmail.com>2017-04-19 12:59:41 +0300
committerNikita Baryshnikov <nib952051@gmail.com>2017-04-26 16:42:41 +0000
commit9bf0edd9bd46ecb900bcdc3349d14869b87ab7de (patch)
tree9b7373e74471648978d57f3b88e9762d852ecaf2 /src/declarative
parente6e42c42d374c7a18a3affae822462931eaa0a71 (diff)
QDeclarativeTextEdit fix sign compare warning
in oldAlignment == opt.alignment() Change-Id: Ie7672507d2ba0380fecada58c0cab6983c6e5afb Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextedit.cpp b/src/declarative/graphicsitems/qdeclarativetextedit.cpp
index 26ad9cb4..5fbf76bf 100644
--- a/src/declarative/graphicsitems/qdeclarativetextedit.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetextedit.cpp
@@ -1758,7 +1758,7 @@ void QDeclarativeTextEditPrivate::updateDefaultTextOption()
{
Q_Q(QDeclarativeTextEdit);
QTextOption opt = document->defaultTextOption();
- int oldAlignment = opt.alignment();
+ const Qt::Alignment oldAlignment = opt.alignment();
QDeclarativeTextEdit::HAlignment horizontalAlignment = q->effectiveHAlign();
if (rightToLeftText) {