[ENHANCEMENT] Add new PE_HeaderSectionMenu primitive element

This is needed to make the PopupMenuTitle UI element work properly
v3.5.13-sru
Timothy Pearson 13 years ago
parent fa9e84ac00
commit ba6061655c

@ -223,6 +223,8 @@ public:
PE_PanelGroupBox,
PE_RubberBand,
PE_HeaderSectionMenu,
// do not add any values below/greater this
PE_CustomBase = 0xf000000
};

@ -283,6 +283,7 @@ void QCommonStyle::drawPrimitive( PrimitiveElement pe,
case PE_ButtonTool:
case PE_ButtonDropDown:
case PE_HeaderSection:
case PE_HeaderSectionMenu:
qDrawShadePanel(p, r, cg, flags & (Style_Sunken | Style_Down | Style_On) , 1,
&cg.brush(QColorGroup::Button));
break;

Loading…
Cancel
Save