diff options
author | Michele Calgaro <[email protected]> | 2023-11-09 10:36:44 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-09 10:43:01 +0900 |
commit | b3df4d055e72863ca51ec9c0428a490306989ff4 (patch) | |
tree | df96e48a48115df6c20bff7b24ba13d8ca361b91 /arts/gui/kde/kpoti.cpp | |
parent | b6d4b7931aaf79a821bcbf5c653beb9c06916750 (diff) | |
download | tdemultimedia-b3df4d055e72863ca51ec9c0428a490306989ff4.tar.gz tdemultimedia-b3df4d055e72863ca51ec9c0428a490306989ff4.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'arts/gui/kde/kpoti.cpp')
-rw-r--r-- | arts/gui/kde/kpoti.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arts/gui/kde/kpoti.cpp b/arts/gui/kde/kpoti.cpp index aefa80c1..59ba7ec8 100644 --- a/arts/gui/kde/kpoti.cpp +++ b/arts/gui/kde/kpoti.cpp @@ -474,13 +474,13 @@ void KPoti::mousePressEvent( TQMouseEvent *e ) { resetState(); - if ( e->button() == Qt::MidButton ) { + if ( e->button() == TQt::MidButton ) { double pos = atan2( double(e->pos().x()-d->center.x()), double(- e->pos().y() + d->center.y()) ); movePoti( pos ); return; } - if ( e->button() != Qt::LeftButton ) + if ( e->button() != TQt::LeftButton ) return; @@ -513,13 +513,13 @@ void KPoti::mousePressEvent( TQMouseEvent *e ) void KPoti::mouseMoveEvent( TQMouseEvent *e ) { - if ( (e->state() & Qt::MidButton) ) { // middle button wins + if ( (e->state() & TQt::MidButton) ) { // middle button wins double pos = atan2( double(e->pos().x()-d->center.x()), double(- e->pos().y()+d->center.y()) ); movePoti( pos ); return; } - if ( !(e->state() & Qt::LeftButton) ) + if ( !(e->state() & TQt::LeftButton) ) return; // left mouse button is up if ( state != Dragging ) return; @@ -535,7 +535,7 @@ void KPoti::mouseMoveEvent( TQMouseEvent *e ) void KPoti::mouseReleaseEvent( TQMouseEvent *e ) { - if ( !(e->button() & Qt::LeftButton) ) + if ( !(e->button() & TQt::LeftButton) ) return; resetState(); } |