summaryrefslogtreecommitdiff
path: root/src/controls/Private/qquickstyleitem.cpp
diff options
context:
space:
mode:
authorJani Heikkinen <jani.heikkinen@theqtcompany.com>2014-11-11 17:38:39 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-11-11 17:38:39 +0100
commit0bcb10542727e6f84459ba2779139a71effd965d (patch)
tree37320542f855e3e976cc7722a2ce24212a39a7b0 /src/controls/Private/qquickstyleitem.cpp
parent313ae1c3b581a3e3a44f86793e158ba9e8eae9ab (diff)
parentd162d3b03cf5fb5c359c87ac841dd74a9909a548 (diff)
downloadqtquickcontrols-0bcb10542727e6f84459ba2779139a71effd965d.tar.gz
Merge "Merge remote-tracking branch 'origin/5.4' into 5.4.0" into refs/staging/5.4.0
Diffstat (limited to 'src/controls/Private/qquickstyleitem.cpp')
-rw-r--r--src/controls/Private/qquickstyleitem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controls/Private/qquickstyleitem.cpp b/src/controls/Private/qquickstyleitem.cpp
index edb33212..fb49e6e3 100644
--- a/src/controls/Private/qquickstyleitem.cpp
+++ b/src/controls/Private/qquickstyleitem.cpp
@@ -354,6 +354,8 @@ void QQuickStyleItem::initStyleOption()
opt->features = QStyleOptionViewItem::HasDisplay;
opt->text = text();
opt->textElideMode = Qt::ElideRight;
+ opt->displayAlignment = Qt::AlignLeft | Qt::AlignVCenter;
+ opt->decorationAlignment = Qt::AlignCenter;
resolvePalette();
needsResolvePalette = false;
QPalette pal = m_styleoption->palette;