diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/styleitem/qstyleitem.cpp | 5 | ||||
-rw-r--r-- | src/styleitem/qstyleitem.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/styleitem/qstyleitem.cpp b/src/styleitem/qstyleitem.cpp index d940b147..10036518 100644 --- a/src/styleitem/qstyleitem.cpp +++ b/src/styleitem/qstyleitem.cpp @@ -806,6 +806,8 @@ void QStyleItem::setElementType(const QString &str) m_itemType = FocusFrame; } else if (str == "dial") { m_itemType = Dial; + } else if (str == "scrollareacorner") { + m_itemType = ScrollAreaCorner; } if (m_dummywidget) { m_dummywidget->installEventFilter(this); @@ -978,6 +980,9 @@ void QStyleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWid case Widget: qApp->style()->drawPrimitive(QStyle::PE_Widget, m_styleoption, painter, widget()); break; + case ScrollAreaCorner: + qApp->style()->drawPrimitive(QStyle::PE_PanelScrollAreaCorner, m_styleoption, painter, widget()); + break; case Splitter: qApp->style()->drawControl(QStyle::CE_Splitter, m_styleoption, painter, widget()); break; diff --git a/src/styleitem/qstyleitem.h b/src/styleitem/qstyleitem.h index f5a860c8..105f90fe 100644 --- a/src/styleitem/qstyleitem.h +++ b/src/styleitem/qstyleitem.h @@ -103,7 +103,8 @@ public: Splitter, Menu, MenuItem, - Widget + Widget, + ScrollAreaCorner }; QStyleItem(QDeclarativeItem *parent = 0); |