summaryrefslogtreecommitdiffstats
path: root/tdestyles/web/webstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdestyles/web/webstyle.cpp')
-rw-r--r--tdestyles/web/webstyle.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/tdestyles/web/webstyle.cpp b/tdestyles/web/webstyle.cpp
index f363b9527..cce42ed15 100644
--- a/tdestyles/web/webstyle.cpp
+++ b/tdestyles/web/webstyle.cpp
@@ -60,7 +60,7 @@ static TQColor contrastingForeground(const TQColor & fg, const TQColor & bg)
if ((diff > -72) && (diff < 72))
{
- return (vbg < 128) ? Qt::white : Qt::black;
+ return (vbg < 128) ? TQt::white : TQt::black;
}
else
{
@@ -471,8 +471,8 @@ WebStyle::drawScrollBarControls
p->setBrush(g.button());
p->drawRect(rAdd);
- Qt::ArrowType t =
- sb->orientation() == Horizontal ? Qt::RightArrow : Qt::DownArrow;
+ TQt::ArrowType t =
+ sb->orientation() == Horizontal ? TQt::RightArrow : TQt::DownArrow;
// Is it me or is TDEStyle::drawArrow broken ?
@@ -500,8 +500,8 @@ WebStyle::drawScrollBarControls
p->setBrush(g.button());
p->drawRect(rSub);
- Qt::ArrowType t =
- sb->orientation() == Horizontal ? Qt::LeftArrow : Qt::UpArrow;
+ TQt::ArrowType t =
+ sb->orientation() == Horizontal ? TQt::LeftArrow : TQt::UpArrow;
drawArrow
(
@@ -785,7 +785,7 @@ WebStyle::drawIndicatorMask
int /* state */
)
{
- p->fillRect(x, y, w, h, Qt::color1);
+ p->fillRect(x, y, w, h, TQt::color1);
}
void
@@ -805,8 +805,8 @@ WebStyle::drawExclusiveIndicatorMask
if (0 == h % 2)
--h;
- p->setPen(Qt::color1);
- p->setBrush(Qt::color1);
+ p->setPen(TQt::color1);
+ p->setBrush(TQt::color1);
p->drawEllipse(x, y, w, h);
}
@@ -866,7 +866,7 @@ WebStyle::drawComboButton
p->drawPoint(w - 6, h - 10);
if (editable)
- p->fillRect(comboButtonFocusRect(x, y, w, h), Qt::red);
+ p->fillRect(comboButtonFocusRect(x, y, w, h), TQt::red);
p->restore();
}
@@ -904,12 +904,12 @@ WebStyle::drawSliderGroove
{
p->save();
- p->setPen(TQPen(g.dark(), 0, Qt::DotLine));
+ p->setPen(TQPen(g.dark(), 0, TQt::DotLine));
- if( o == Qt::Horizontal )
+ if( o == TQt::Horizontal )
p->drawLine(x, y + h / 2, w, y + h / 2);
else
- if( o == Qt::Vertical )
+ if( o == TQt::Vertical )
p->drawLine(x + w / 2, y, x + w / 2, h);
p->restore();
@@ -919,7 +919,7 @@ WebStyle::drawSliderGroove
WebStyle::drawArrow
(
TQPainter * p,
- Qt::ArrowType type,
+ TQt::ArrowType type,
bool down,
int x,
int y,
@@ -955,10 +955,10 @@ WebStyle::drawSlider
int sl = sliderLength();
- if( o == Qt::Horizontal )
+ if( o == TQt::Horizontal )
p->drawEllipse(x, y + h / 2 - sl / 2, sl, sl);
else
- if( o == Qt::Vertical )
+ if( o == TQt::Vertical )
p->drawEllipse(x + w / 2 - sl / 2, y, sl, sl);
p->restore();
@@ -1495,7 +1495,7 @@ WebStyle::drawTabMask
bool
)
{
- p->fillRect(tab->rect(), Qt::color1);
+ p->fillRect(tab->rect(), TQt::color1);
}
void
@@ -1641,7 +1641,7 @@ WebStyle::drawKickerTaskButton
p->setPen(contrastingForeground(g.text(), bg));
}
- p->setPen(Qt::white);
+ p->setPen(TQt::white);
p->drawText
(
@@ -1655,7 +1655,7 @@ WebStyle::drawKickerTaskButton
}
p->restore();
- p->setPen(Qt::white);
+ p->setPen(TQt::white);
}
int