summaryrefslogtreecommitdiffstats
path: root/tdeui/tdeselect.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-13 20:33:00 +0900
committerMichele Calgaro <[email protected]>2023-11-15 23:44:25 +0900
commitc8ece3630d4d21acaf1749fc2cf660a0463070c3 (patch)
treebae3d3c70886ceeffd914cac031dfeab532a607a /tdeui/tdeselect.cpp
parent419c185be746df8bba59fe5de991b4a2b3977897 (diff)
downloadtdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.tar.gz
tdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeui/tdeselect.cpp')
-rw-r--r--tdeui/tdeselect.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tdeui/tdeselect.cpp b/tdeui/tdeselect.cpp
index 272f7a144..9d1a898fd 100644
--- a/tdeui/tdeselect.cpp
+++ b/tdeui/tdeselect.cpp
@@ -160,7 +160,7 @@ void KXYSelector::mouseMoveEvent( TQMouseEvent *e )
void KXYSelector::wheelEvent( TQWheelEvent *e )
{
- if ( e->orientation() == Qt::Horizontal )
+ if ( e->orientation() == TQt::Horizontal )
setValues( xValue() + e->delta()/120, yValue() );
else
setValues( xValue(), yValue() + e->delta()/120 );
@@ -238,7 +238,7 @@ void KXYSelector::drawCursor( TQPainter *p, int xp, int yp )
TDESelector::TDESelector( TQWidget *parent, const char *name )
: TQWidget( parent, name ), TQRangeControl()
{
- _orientation = Qt::Horizontal;
+ _orientation = TQt::Horizontal;
_indent = true;
}
@@ -258,7 +258,7 @@ TQRect TDESelector::contentsRect() const
{
int w = style().pixelMetric(TQStyle::PM_DefaultFrameWidth);
int iw = (w < 5) ? 5 : w;
- if ( orientation() == Qt::Vertical )
+ if ( orientation() == TQt::Vertical )
return TQRect( w, iw, width() - w * 2 - 5, height() - 2 * iw );
else
return TQRect( iw, w, width() - 2 * iw, height() - w * 2 - 5 );
@@ -277,7 +277,7 @@ void TDESelector::paintEvent( TQPaintEvent * )
if ( indent() )
{
TQRect r = rect();
- if ( orientation() == Qt::Vertical )
+ if ( orientation() == TQt::Vertical )
r.addCoords(0, iw - w, -iw, w - iw);
else
r.addCoords(iw - w, 0, w - iw, -iw);
@@ -332,7 +332,7 @@ void TDESelector::moveArrow( const TQPoint &pos )
int w = style().pixelMetric(TQStyle::PM_DefaultFrameWidth);
int iw = (w < 5) ? 5 : w;
- if ( orientation() == Qt::Vertical )
+ if ( orientation() == TQt::Vertical )
val = ( maxValue() - minValue() ) * (height()-pos.y()-5+w)
/ (height()-iw*2) + minValue();
else
@@ -348,7 +348,7 @@ TQPoint TDESelector::calcArrowPos( int val )
int w = style().pixelMetric(TQStyle::PM_DefaultFrameWidth);
int iw = (w < 5) ? 5 : w;
- if ( orientation() == Qt::Vertical )
+ if ( orientation() == TQt::Vertical )
{
p.setY( height() - ( (height()-2*iw) * val
/ ( maxValue() - minValue() ) + 5 ) );
@@ -377,7 +377,7 @@ void TDESelector::drawArrow( TQPainter *painter, bool show, const TQPoint &pos )
painter->setBrush( TQBrush( colorGroup().buttonText() ) );
array.setPoint( 0, pos.x()+0, pos.y()+0 );
array.setPoint( 1, pos.x()+5, pos.y()+5 );
- if ( orientation() == Qt::Vertical )
+ if ( orientation() == TQt::Vertical )
{
array.setPoint( 2, pos.x()+5, pos.y()-5 );
}
@@ -390,7 +390,7 @@ void TDESelector::drawArrow( TQPainter *painter, bool show, const TQPoint &pos )
}
else
{
- if ( orientation() == Qt::Vertical )
+ if ( orientation() == TQt::Vertical )
{
repaint(pos.x(), pos.y()-5, 6, 11, true);
}
@@ -442,7 +442,7 @@ void KGradientSelector::drawContents( TQPainter *painter )
int greenDiff = color2.green() - color1.green();
int blueDiff = color2.blue() - color1.blue();
- if ( orientation() == Qt::Vertical )
+ if ( orientation() == TQt::Vertical )
{
for ( int y = 0; y < image.height(); y++ )
{
@@ -488,7 +488,7 @@ void KGradientSelector::drawContents( TQPainter *painter )
painter->drawPixmap( contentsRect().x(), contentsRect().y(), p );
- if ( orientation() == Qt::Vertical )
+ if ( orientation() == TQt::Vertical )
{
int yPos = contentsRect().top() + painter->fontMetrics().ascent() + 2;
int xPos = contentsRect().left() + (contentsRect().width() -