summaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-11-06 22:37:56 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-11-06 22:37:56 -0600
commitd1c672237288068a5e3777d16277221912bc0088 (patch)
treed811e1eb3634399e65f9e37bfb64ff7b142c3eb4 /src/styles
parent37a8b8a9126f613eb94ee76e3476d3c6a5830018 (diff)
downloadqt3-d1c672237288068a5e3777d16277221912bc0088.tar.gz
qt3-d1c672237288068a5e3777d16277221912bc0088.zip
Add ability to set progressbar orientation
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/qcommonstyle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/styles/qcommonstyle.cpp b/src/styles/qcommonstyle.cpp
index 2052ef1..a0e64d0 100644
--- a/src/styles/qcommonstyle.cpp
+++ b/src/styles/qcommonstyle.cpp
@@ -159,7 +159,7 @@ QStringList getObjectTypeListForObject(const QObject* object) {
}
QStyle::ControlElementFlags getControlElementFlagsForObject(const QObject* object, QStringList objectTypeList, const QStyleOption& opt, bool populateReliantFields) {
- QStyle::ControlElementFlags cef = (QStyle::ControlElementFlags)0;
+ QStyle::ControlElementFlags cef = QStyle::CEF_None;
if (object) {
if (objectTypeList.contains("QPushButton")) {
@@ -405,6 +405,7 @@ QStyleControlElementData populateControlElementDataFromWidget(const QWidget* wid
ceData.totalSteps = pb->totalSteps();
ceData.progressText = pb->progressString();
ceData.percentageVisible = pb->percentageVisible();
+ ceData.orientation = pb->orientation();
}
}
if (ceData.widgetObjectTypes.contains("QHeader")) {