From 294ec2ee1fca27847ba0e913a3b11f7382e0492e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 31 Oct 2012 23:30:20 -0500 Subject: Add parent toolbar information to style info structs --- src/styles/qcommonstyle.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/styles/qcommonstyle.cpp') 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(parentWidget); + if (toolbar) { + ceData.toolBarData.orientation = toolbar->orientation(); + } } QCheckListItem *item = opt.checkListItem(); -- cgit v1.2.3