aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2012-11-29 08:17:29 +0100
committerEike Ziller <eike.ziller@digia.com>2012-11-29 11:30:08 +0100
commita3f35a447a9a4e9f41e624a6c9334e2a69a4cd5e (patch)
tree0efa0a485cbb8ceb5cf96c0017b3e900753a504b /src
parent297afe3b01462e8fcb462879d23a9b82e9db372f (diff)
Set styleObject on the QStyleItem style option.
Qt now generally expects styleObject to be set during style draw calls. Change-Id: I148d0a4e95a60c35fc6dc2b34cd0ba8d598cf7c3 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/libs/qtcomponents/styleitem/qstyleitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/qtcomponents/styleitem/qstyleitem.cpp b/src/libs/qtcomponents/styleitem/qstyleitem.cpp
index f8f21124fa..45205ee4a6 100644
--- a/src/libs/qtcomponents/styleitem/qstyleitem.cpp
+++ b/src/libs/qtcomponents/styleitem/qstyleitem.cpp
@@ -404,6 +404,7 @@ void QStyleItem::initStyleOption()
m_styleoption = new QStyleOption();
m_styleoption->rect = QRect(m_paintMargins, m_paintMargins, width() - 2* m_paintMargins, height() - 2 * m_paintMargins);
+ m_styleoption->styleObject = this;
if (isEnabled())
m_styleoption->state |= QStyle::State_Enabled;