summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Bache-Wiig <jensbw@gmail.com>2011-09-29 09:51:31 +0200
committerJens Bache-Wiig <jensbw@gmail.com>2011-09-29 09:51:31 +0200
commit4d6b7c65823e77679778faf368ad6b2288cd8d83 (patch)
tree1439a84dd0b515854e02a75429ad03f03f9754dd
parent6ab3a69f91def254475d5188002e842e11d7a3cb (diff)
downloadqtquickcontrols-4d6b7c65823e77679778faf368ad6b2288cd8d83.tar.gz
Add basis for statusbar styling
-rw-r--r--src/qstyleitem.cpp5
-rw-r--r--src/qstyleitem.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/qstyleitem.cpp b/src/qstyleitem.cpp
index 46e69d7d..62a28e06 100644
--- a/src/qstyleitem.cpp
+++ b/src/qstyleitem.cpp
@@ -825,6 +825,8 @@ void QStyleItem::setElementType(const QString &str)
m_itemType = FocusFrame;
} else if (str == "dial") {
m_itemType = Dial;
+ } else if (str == "statusbar") {
+ m_itemType = StatusBar;
} else if (str == "scrollareacorner") {
m_itemType = ScrollAreaCorner;
}
@@ -1045,6 +1047,9 @@ void QStyleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWid
case ToolBar:
qApp->style()->drawControl(QStyle::CE_ToolBar, m_styleoption, painter, widget());
break;
+ case StatusBar:
+ qApp->style()->drawPrimitive(QStyle::PE_PanelStatusBar, m_styleoption, painter, widget());
+ break;
case GroupBox:
qApp->style()->drawComplexControl(QStyle::CC_GroupBox, qstyleoption_cast<QStyleOptionComplex*>(m_styleoption), painter, widget());
break;
diff --git a/src/qstyleitem.h b/src/qstyleitem.h
index 8f30b2ab..8d27dd25 100644
--- a/src/qstyleitem.h
+++ b/src/qstyleitem.h
@@ -104,6 +104,7 @@ public:
Menu,
MenuItem,
Widget,
+ StatusBar,
ScrollAreaCorner
};