summaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-31 23:30:20 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-31 23:30:20 -0500
commit294ec2ee1fca27847ba0e913a3b11f7382e0492e (patch)
treeb209f37b902d45067a40b18c8fb6a0989a318069 /src/styles
parent289363b959ac4720ee604f1dfba54c624f0098c0 (diff)
downloadqt3-294ec2ee1fca27847ba0e913a3b11f7382e0492e.tar.gz
qt3-294ec2ee1fca27847ba0e913a3b11f7382e0492e.zip
Add parent toolbar information to style info structs
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/qcommonstyle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/styles/qcommonstyle.cpp b/src/styles/qcommonstyle.cpp
index 3a1a8d8..1cc2540 100644
--- a/src/styles/qcommonstyle.cpp
+++ b/src/styles/qcommonstyle.cpp
@@ -576,6 +576,10 @@ QStyleControlElementData populateControlElementDataFromWidget(const QWidget* wid
}
ceData.dwData.closeEnabled = dw->isCloseEnabled();
}
+ const QToolBar * toolbar = dynamic_cast<const QToolBar*>(parentWidget);
+ if (toolbar) {
+ ceData.toolBarData.orientation = toolbar->orientation();
+ }
}
QCheckListItem *item = opt.checkListItem();