Commit a3f35a44 authored by Morten Johan Sørvig's avatar Morten Johan Sørvig Committed by Eike Ziller
Browse files

Set styleObject on the QStyleItem style option.

Qt now generally expects styleObject to be set
during style draw calls.

Change-Id: I148d0a4e95a60c35fc6dc2b34cd0ba8d598cf7c3
Reviewed-by: default avatarKai Koehne <>
Reviewed-by: default avatarEike Ziller <>
parent 297afe3b
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment