summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-05 00:22:42 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-05 00:22:42 -0500
commit4dd6a7ae2cf8d7fc3df7c9743129cec736c0d591 (patch)
treebc4d239a193ceb935f7eaa4d2e5b6aa5c7e7ef2c
parent18b62cf4a7d05ef56b601f3b5bb49e18a9bb8618 (diff)
downloadtde-4dd6a7ae2cf8d7fc3df7c9743129cec736c0d591.tar.gz
tde-4dd6a7ae2cf8d7fc3df7c9743129cec736c0d591.zip
[ENHANCEMENT] Add new PE_HeaderSectionMenu primitive element
This is needed to make the PopupMenuTitle UI element work properly
-rw-r--r--main/dependencies/qt3/src/kernel/qstyle.h2
-rw-r--r--main/dependencies/qt3/src/styles/qcommonstyle.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/main/dependencies/qt3/src/kernel/qstyle.h b/main/dependencies/qt3/src/kernel/qstyle.h
index 5531def0c..64152edf6 100644
--- a/main/dependencies/qt3/src/kernel/qstyle.h
+++ b/main/dependencies/qt3/src/kernel/qstyle.h
@@ -223,6 +223,8 @@ public:
PE_PanelGroupBox,
PE_RubberBand,
+ PE_HeaderSectionMenu,
+
// do not add any values below/greater this
PE_CustomBase = 0xf000000
};
diff --git a/main/dependencies/qt3/src/styles/qcommonstyle.cpp b/main/dependencies/qt3/src/styles/qcommonstyle.cpp
index 0f9dddb2a..faf3649cc 100644
--- a/main/dependencies/qt3/src/styles/qcommonstyle.cpp
+++ b/main/dependencies/qt3/src/styles/qcommonstyle.cpp
@@ -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;