diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-01 13:13:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-01 13:13:05 +0000 |
commit | 09d9d0683c3d80d7f88afd163b387d222c2220bb (patch) | |
tree | bd6a46ec3f308532281e0776a40492acd7b3fa2c | |
parent | 708dc021992da4012720ef23837bb0c9921dc888 (diff) | |
download | tdelibs-09d9d0683c3d80d7f88afd163b387d222c2220bb.tar.gz tdelibs-09d9d0683c3d80d7f88afd163b387d222c2220bb.zip |
Fix kdelibs styles by adding PE_HeaderSectionMenu handlers to them
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1250782 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | kstyles/highcolor/highcolor.cpp | 1 | ||||
-rw-r--r-- | kstyles/highcontrast/highcontrast.cpp | 1 | ||||
-rw-r--r-- | kstyles/keramik/keramik.cpp | 1 | ||||
-rw-r--r-- | kstyles/kthemestyle/kthemestyle.cpp | 1 | ||||
-rw-r--r-- | kstyles/light/lightstyle-v2.cpp | 1 | ||||
-rw-r--r-- | kstyles/light/lightstyle-v3.cpp | 1 | ||||
-rw-r--r-- | kstyles/plastik/plastik.cpp | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/kstyles/highcolor/highcolor.cpp b/kstyles/highcolor/highcolor.cpp index c89862fa7..cbfc2699c 100644 --- a/kstyles/highcolor/highcolor.cpp +++ b/kstyles/highcolor/highcolor.cpp @@ -414,6 +414,7 @@ void HighColorStyle::tqdrawPrimitive( TQ_PrimitiveElement pe, // HEADER SECTION // ------------------------------------------------------------------- + case PE_HeaderSectionMenu: case PE_HeaderSection: { // Temporary solution for the proper orientation of gradients. bool horizontal = true; diff --git a/kstyles/highcontrast/highcontrast.cpp b/kstyles/highcontrast/highcontrast.cpp index 4bc417f7e..006b745bf 100644 --- a/kstyles/highcontrast/highcontrast.cpp +++ b/kstyles/highcontrast/highcontrast.cpp @@ -372,6 +372,7 @@ void HighContrastStyle::tqdrawPrimitive (TQ_PrimitiveElement pe, } // HEADER SECTION // ------------------------------------------------------------------- + case PE_HeaderSectionMenu: case PE_HeaderSection: { setColorsButton (p, cg, flags, 0); drawRect (p, r); diff --git a/kstyles/keramik/keramik.cpp b/kstyles/keramik/keramik.cpp index f7634de12..b18cdc192 100644 --- a/kstyles/keramik/keramik.cpp +++ b/kstyles/keramik/keramik.cpp @@ -740,6 +740,7 @@ void KeramikStyle::tqdrawPrimitive( TQ_PrimitiveElement pe, // HEADER SECTION // ------------------------------------------------------------------- + case PE_HeaderSectionMenu: case PE_HeaderSection: if ( flags & Style_Down ) Keramik::RectTilePainter( keramik_listview_pressed, false ).draw( p, r, cg.button(), cg.background() ); diff --git a/kstyles/kthemestyle/kthemestyle.cpp b/kstyles/kthemestyle/kthemestyle.cpp index 96cbc9b88..ffd2ffda8 100644 --- a/kstyles/kthemestyle/kthemestyle.cpp +++ b/kstyles/kthemestyle/kthemestyle.cpp @@ -839,6 +839,7 @@ void KThemeStyle::drawPrimitive ( PrimitiveElement pe, TQPainter * p, const TQRe break; } + case PE_HeaderSectionMenu: case PE_HeaderSection: { sunken = false; //Never mind this one diff --git a/kstyles/light/lightstyle-v2.cpp b/kstyles/light/lightstyle-v2.cpp index f6007a1f0..9858ce4f8 100644 --- a/kstyles/light/lightstyle-v2.cpp +++ b/kstyles/light/lightstyle-v2.cpp @@ -137,6 +137,7 @@ void LightStyleV2::tqdrawPrimitive( TQ_PrimitiveElement pe, const TQStyleOption &data ) const { switch (pe) { + case PE_HeaderSectionMenu: case PE_HeaderSection: { flags = ((flags | Style_Sunken) ^ Style_Sunken) | Style_Raised; diff --git a/kstyles/light/lightstyle-v3.cpp b/kstyles/light/lightstyle-v3.cpp index 9af257bf1..b42ac5ef5 100644 --- a/kstyles/light/lightstyle-v3.cpp +++ b/kstyles/light/lightstyle-v3.cpp @@ -223,6 +223,7 @@ void LightStyleV3::tqdrawPrimitive( TQ_PrimitiveElement pe, const TQBrush *fill = 0; switch (pe) { + case PE_HeaderSectionMenu: case PE_HeaderSection: // don't draw any headers sunken flags = ((flags | Style_Sunken) ^ Style_Sunken) | Style_Raised; diff --git a/kstyles/plastik/plastik.cpp b/kstyles/plastik/plastik.cpp index 4cc2a0fbc..1c6f5cd6a 100644 --- a/kstyles/plastik/plastik.cpp +++ b/kstyles/plastik/plastik.cpp @@ -1476,6 +1476,7 @@ void PlastikStyle::tqdrawPrimitive(TQ_PrimitiveElement pe, break; } + case PE_HeaderSectionMenu: case PE_HeaderSection: { // the taskbar buttons seems to be painted with PE_HeaderSection but I // want them look like normal buttons (at least for now. :) ) |