summaryrefslogtreecommitdiffstats
path: root/arts/gui
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-09 10:36:44 +0900
committerMichele Calgaro <[email protected]>2023-11-09 10:43:01 +0900
commitb3df4d055e72863ca51ec9c0428a490306989ff4 (patch)
treedf96e48a48115df6c20bff7b24ba13d8ca361b91 /arts/gui
parentb6d4b7931aaf79a821bcbf5c653beb9c06916750 (diff)
downloadtdemultimedia-b3df4d055e72863ca51ec9c0428a490306989ff4.tar.gz
tdemultimedia-b3df4d055e72863ca51ec9c0428a490306989ff4.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'arts/gui')
-rw-r--r--arts/gui/kde/kfader.cpp4
-rw-r--r--arts/gui/kde/kgraph.cpp6
-rw-r--r--arts/gui/kde/kpoti.cpp10
-rw-r--r--arts/gui/kde/kvolumefader_impl.cpp4
4 files changed, 12 insertions, 12 deletions
diff --git a/arts/gui/kde/kfader.cpp b/arts/gui/kde/kfader.cpp
index e5179f9f..499d509c 100644
--- a/arts/gui/kde/kfader.cpp
+++ b/arts/gui/kde/kfader.cpp
@@ -6,13 +6,13 @@ void KFader::init()
}
KFader::KFader( TQWidget * parent, const char * name )
- : TQSlider( Qt::Vertical, parent, name )
+ : TQSlider( TQt::Vertical, parent, name )
{
init();
}
KFader::KFader( int minValue, int maxValue, int pageStep, int value, TQWidget * parent, const char * name )
- : TQSlider( minValue, maxValue, pageStep, value, Qt::Vertical, parent, name )
+ : TQSlider( minValue, maxValue, pageStep, value, TQt::Vertical, parent, name )
{
init();
}
diff --git a/arts/gui/kde/kgraph.cpp b/arts/gui/kde/kgraph.cpp
index 2040793e..70f173ec 100644
--- a/arts/gui/kde/kgraph.cpp
+++ b/arts/gui/kde/kgraph.cpp
@@ -111,7 +111,7 @@ void KGraph::paintEvent( TQPaintEvent *e )
void KGraph::mousePressEvent(TQMouseEvent *e)
{
- if(e->button() == Qt::LeftButton || e->button() == Qt::RightButton)
+ if(e->button() == TQt::LeftButton || e->button() == TQt::RightButton)
{
std::list<KGraphLine_impl *>::iterator li;
for(li = lines.begin(); li != lines.end(); li++)
@@ -140,7 +140,7 @@ void KGraph::mousePressEvent(TQMouseEvent *e)
if(selectedIndex >= 0)
{
// erase point
- if(e->button() == Qt::RightButton)
+ if(e->button() == TQt::RightButton)
{
if(selectedIndex != 0 && selectedIndex != (( int )( selectedLine->_points.size() )-1))
{
@@ -159,7 +159,7 @@ void KGraph::mousePressEvent(TQMouseEvent *e)
selectedIndex = -1;
}
}
- else if(e->button() == Qt::LeftButton)
+ else if(e->button() == TQt::LeftButton)
{
// try to insert a point
std::list<KGraphLine_impl *>::iterator li;
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();
}
diff --git a/arts/gui/kde/kvolumefader_impl.cpp b/arts/gui/kde/kvolumefader_impl.cpp
index 598485f0..a45f91aa 100644
--- a/arts/gui/kde/kvolumefader_impl.cpp
+++ b/arts/gui/kde/kvolumefader_impl.cpp
@@ -184,8 +184,8 @@ void KVolumeFader_Widget::mousePressEvent( TQMouseEvent* ){
void KVolumeFader_Widget::mouseReleaseEvent( TQMouseEvent* qme ){
bool setValue = false;
- if ( TDEGlobalSettings::mouseSettings().handed == 0 && qme->button() == Qt::LeftButton ) setValue=true;
- if ( TDEGlobalSettings::mouseSettings().handed == 1 && qme->button() == Qt::RightButton ) setValue=true;
+ if ( TDEGlobalSettings::mouseSettings().handed == 0 && qme->button() == TQt::LeftButton ) setValue=true;
+ if ( TDEGlobalSettings::mouseSettings().handed == 1 && qme->button() == TQt::RightButton ) setValue=true;
if ( setValue )
{
switch ( _dir ) {