diff options
Diffstat (limited to 'kstyles/web')
-rw-r--r-- | kstyles/web/webstyle.cpp | 32 | ||||
-rw-r--r-- | kstyles/web/webstyle.h | 2 |
2 files changed, 17 insertions, 17 deletions
diff --git a/kstyles/web/webstyle.cpp b/kstyles/web/webstyle.cpp index 4c8a7ad5b..f1416526e 100644 --- a/kstyles/web/webstyle.cpp +++ b/kstyles/web/webstyle.cpp @@ -22,7 +22,7 @@ #endif #include <tqmenudata.h> -#include <palette.h> +#include <tqpalette.h> #include <tqbitmap.h> #include <tqtabbar.h> #include <tqpointarray.h> @@ -92,7 +92,7 @@ scrollBarControlsMetrics int extent = horizontal ? sb->height() : sb->width(); - TQColorGroup g = sb->colorGroup(); + TQColorGroup g = sb->tqcolorGroup(); if (sliderStart > sliderMax) sliderStart = sliderMax; @@ -303,12 +303,12 @@ WebStyle::eventFilter(TQObject * o, TQEvent * e) if (e->type() == TQEvent::Enter) { _highlightedButton = pb; - pb->repaint(false); + pb->tqrepaint(false); } else if (e->type() == TQEvent::Leave) { _highlightedButton = 0; - pb->repaint(false); + pb->tqrepaint(false); } return false; @@ -371,14 +371,14 @@ WebStyle::drawPushButton(TQPushButton * b, TQPainter * p) bool sunken(b->isDown() || b->isOn()); bool hl(_highlightedButton == b); - TQColor bg(b->colorGroup().button()); + TQColor bg(b->tqcolorGroup().button()); p->save(); - p->fillRect(b->rect(), b->colorGroup().brush(TQColorGroup::Background)); + p->fillRect(b->rect(), b->tqcolorGroup().brush(TQColorGroup::Background)); if (b->isDefault()) { - TQColor c(hl ? b->colorGroup().highlight() : b->colorGroup().mid()); + TQColor c(hl ? b->tqcolorGroup().highlight() : b->tqcolorGroup().mid()); p->setPen(contrastingForeground(c, bg)); @@ -391,26 +391,26 @@ WebStyle::drawPushButton(TQPushButton * b, TQPainter * p) 4, b->width() - 8, b->height() - 8, - b->colorGroup().brush(TQColorGroup::Button) + b->tqcolorGroup().brush(TQColorGroup::Button) ); if (b->isEnabled()) { if (sunken) { - p->setPen(contrastingForeground(b->colorGroup().light(), bg)); + p->setPen(contrastingForeground(b->tqcolorGroup().light(), bg)); } else { if (hl) - p->setPen(contrastingForeground(b->colorGroup().highlight(), bg)); + p->setPen(contrastingForeground(b->tqcolorGroup().highlight(), bg)); else - p->setPen(contrastingForeground(b->colorGroup().mid(), bg)); + p->setPen(contrastingForeground(b->tqcolorGroup().mid(), bg)); } } else { - p->setPen(b->colorGroup().button()); + p->setPen(b->tqcolorGroup().button()); } drawFunkyRect(p, 3, 3, b->width() - 6, b->height() - 6, true); @@ -459,7 +459,7 @@ WebStyle::drawScrollBarControls rSlider ); - TQColorGroup g(sb->colorGroup()); + TQColorGroup g(sb->tqcolorGroup()); if (controls & AddLine && rAdd.isValid()) { @@ -754,7 +754,7 @@ WebStyle::drawExclusiveIndicator p->setBrush(g.brush(TQColorGroup::Background)); - // Avoid misshapen ellipses. Qt or X bug ? Who knows... + // Avoid mistqshapen ellipses. Qt or X bug ? Who knows... if (0 == w % 2) --w; @@ -1450,14 +1450,14 @@ WebStyle::drawTab { TQRect r(tab->rect()); - TQColorGroup g(tabBar->colorGroup()); + TQColorGroup g(tabBar->tqcolorGroup()); p->save(); p->setPen(selected ? g.dark() : g.mid()); p->fillRect(r, g.brush(TQColorGroup::Background)); - switch (tabBar->shape()) + switch (tabBar->tqshape()) { case TQTabBar::RoundedAbove: case TQTabBar::TriangularAbove: diff --git a/kstyles/web/webstyle.h b/kstyles/web/webstyle.h index fffcbb965..5cd930c73 100644 --- a/kstyles/web/webstyle.h +++ b/kstyles/web/webstyle.h @@ -21,7 +21,7 @@ #define WEB_STYLE_H #include <kstyle.h> -#include <palette.h> +#include <tqpalette.h> class TQPainter; class TQScrollBar; |