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
v3.5.13-sru
tpearson 14 years ago
parent 708dc02199
commit 09d9d0683c

@ -414,6 +414,7 @@ void HighColorStyle::tqdrawPrimitive( TQ_PrimitiveElement pe,
// HEADER SECTION // HEADER SECTION
// ------------------------------------------------------------------- // -------------------------------------------------------------------
case PE_HeaderSectionMenu:
case PE_HeaderSection: { case PE_HeaderSection: {
// Temporary solution for the proper orientation of gradients. // Temporary solution for the proper orientation of gradients.
bool horizontal = true; bool horizontal = true;

@ -372,6 +372,7 @@ void HighContrastStyle::tqdrawPrimitive (TQ_PrimitiveElement pe,
} }
// HEADER SECTION // HEADER SECTION
// ------------------------------------------------------------------- // -------------------------------------------------------------------
case PE_HeaderSectionMenu:
case PE_HeaderSection: { case PE_HeaderSection: {
setColorsButton (p, cg, flags, 0); setColorsButton (p, cg, flags, 0);
drawRect (p, r); drawRect (p, r);

@ -740,6 +740,7 @@ void KeramikStyle::tqdrawPrimitive( TQ_PrimitiveElement pe,
// HEADER SECTION // HEADER SECTION
// ------------------------------------------------------------------- // -------------------------------------------------------------------
case PE_HeaderSectionMenu:
case PE_HeaderSection: case PE_HeaderSection:
if ( flags & Style_Down ) if ( flags & Style_Down )
Keramik::RectTilePainter( keramik_listview_pressed, false ).draw( p, r, cg.button(), cg.background() ); Keramik::RectTilePainter( keramik_listview_pressed, false ).draw( p, r, cg.button(), cg.background() );

@ -839,6 +839,7 @@ void KThemeStyle::drawPrimitive ( PrimitiveElement pe, TQPainter * p, const TQRe
break; break;
} }
case PE_HeaderSectionMenu:
case PE_HeaderSection: case PE_HeaderSection:
{ {
sunken = false; //Never mind this one sunken = false; //Never mind this one

@ -137,6 +137,7 @@ void LightStyleV2::tqdrawPrimitive( TQ_PrimitiveElement pe,
const TQStyleOption &data ) const const TQStyleOption &data ) const
{ {
switch (pe) { switch (pe) {
case PE_HeaderSectionMenu:
case PE_HeaderSection: case PE_HeaderSection:
{ {
flags = ((flags | Style_Sunken) ^ Style_Sunken) | Style_Raised; flags = ((flags | Style_Sunken) ^ Style_Sunken) | Style_Raised;

@ -223,6 +223,7 @@ void LightStyleV3::tqdrawPrimitive( TQ_PrimitiveElement pe,
const TQBrush *fill = 0; const TQBrush *fill = 0;
switch (pe) { switch (pe) {
case PE_HeaderSectionMenu:
case PE_HeaderSection: case PE_HeaderSection:
// don't draw any headers sunken // don't draw any headers sunken
flags = ((flags | Style_Sunken) ^ Style_Sunken) | Style_Raised; flags = ((flags | Style_Sunken) ^ Style_Sunken) | Style_Raised;

@ -1476,6 +1476,7 @@ void PlastikStyle::tqdrawPrimitive(TQ_PrimitiveElement pe,
break; break;
} }
case PE_HeaderSectionMenu:
case PE_HeaderSection: { case PE_HeaderSection: {
// the taskbar buttons seems to be painted with PE_HeaderSection but I // the taskbar buttons seems to be painted with PE_HeaderSection but I
// want them look like normal buttons (at least for now. :) ) // want them look like normal buttons (at least for now. :) )

Loading…
Cancel
Save