diff options
author | Jens Bache-Wiig <jensb.bache-wiig@nokia.com> | 2011-09-20 12:45:48 +0200 |
---|---|---|
committer | Jens Bache-Wiig <jensb.bache-wiig@nokia.com> | 2011-09-20 12:45:48 +0200 |
commit | e53b5d9f1527e59dbf3a5e28d591f37cf0277c89 (patch) | |
tree | cb47f34a5a052c43279445023e88260987c01910 /src | |
parent | 1e6ce30ffe3687704276f68a873d23d174c75d91 (diff) | |
download | qtquickcontrols-e53b5d9f1527e59dbf3a5e28d591f37cf0277c89.tar.gz |
Add support for scrollareacorner styling
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); |