From 303b6445011a6ed10c48ac6e1eda415e5c371264 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 13 Nov 2023 20:33:00 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro (cherry picked from commit c8ece3630d4d21acaf1749fc2cf660a0463070c3) --- tdestyles/web/webstyle.cpp | 36 ++++++++++++++++++------------------ tdestyles/web/webstyle.h | 4 ++-- 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'tdestyles/web') 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 diff --git a/tdestyles/web/webstyle.h b/tdestyles/web/webstyle.h index 0e4c59dbd..ab8742691 100644 --- a/tdestyles/web/webstyle.h +++ b/tdestyles/web/webstyle.h @@ -186,7 +186,7 @@ class WebStyle : public TDEStyle void drawArrow ( TQPainter *, - Qt::ArrowType, + TQt::ArrowType, bool down, int x, int y, @@ -406,7 +406,7 @@ class WebStyle : public TDEStyle int popupMenuItemHeight(bool, TQMenuItem *, const TQFontMetrics &); - GUIStyle guiStyle() const { return Qt::MotifStyle; } + GUIStyle guiStyle() const { return TQt::MotifStyle; } bool eventFilter(TQObject *, TQEvent *); }; -- cgit v1.2.1