diff options
Diffstat (limited to 'arts/tools/artscontrolapplet.cpp')
-rw-r--r-- | arts/tools/artscontrolapplet.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arts/tools/artscontrolapplet.cpp b/arts/tools/artscontrolapplet.cpp index a178c2d3..e4a7e16a 100644 --- a/arts/tools/artscontrolapplet.cpp +++ b/arts/tools/artscontrolapplet.cpp @@ -21,15 +21,15 @@ #include <kapplication.h> #include <kmessagebox.h> #include <kdebug.h> -#include <qcursor.h> -#include <qtimer.h> +#include <tqcursor.h> +#include <tqtimer.h> #include "artscontrolapplet.h" #include "artscontrolapplet_private.h" extern "C" { - KDE_EXPORT KPanelApplet* init( QWidget *parent, const QString configFile) + KDE_EXPORT KPanelApplet* init( TQWidget *parent, const TQString configFile) { KGlobal::locale()->insertCatalogue("artscontrol"); return new ArtsControlApplet(configFile, KPanelApplet::Normal, @@ -38,9 +38,9 @@ extern "C" } } -ArtsControlApplet::ArtsControlApplet(const QString& configFile, Type type, int actions, QWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name) +ArtsControlApplet::ArtsControlApplet(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name) { - //kdDebug()<<"ArtsControlApplet::ArtsControlApplet( const QString& "<<configFile<<", Type "<<type<<", int "<<actions<<", QWidget* "<<parent<<", const char* "<<name<<" )"<<endl; + //kdDebug()<<"ArtsControlApplet::ArtsControlApplet( const TQString& "<<configFile<<", Type "<<type<<", int "<<actions<<", TQWidget* "<<parent<<", const char* "<<name<<" )"<<endl; // Get the current application configuration handle ksConfig = config(); @@ -48,7 +48,7 @@ ArtsControlApplet::ArtsControlApplet(const QString& configFile, Type type, int a if( !p->barts ) KMessageBox::information(0, i18n("Something with the ArtsServer went wrong. You probably need to restart aRts and then reload this applet.")); setCustomMenu(p->menu); - p->layout = new QBoxLayout( this, QBoxLayout::LeftToRight ); + p->layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); p->layout->setSpacing( 2 ); if( p->barts ) { @@ -61,7 +61,7 @@ ArtsControlApplet::ArtsControlApplet(const QString& configFile, Type type, int a p->layout->activate(); - QTimer::singleShot( 100, this, SLOT( supdatelayout() ) ); + TQTimer::singleShot( 100, this, TQT_SLOT( supdatelayout() ) ); kdDebug()<<"ArtsControlApplet::ArtsControlApplet() finished."<<endl; } @@ -101,14 +101,14 @@ kdDebug()<<"ArtsControlApplet::heightForWidth( int "<<w<<" )"<<endl; return p->layout->sizeHint().height(); } -void ArtsControlApplet::resizeEvent( QResizeEvent * /*_Event*/ ) { - kdDebug()<<"ArtsControlApplet::resizeEvent( QResizeEvent * )"<<endl; +void ArtsControlApplet::resizeEvent( TQResizeEvent * /*_Event*/ ) { + kdDebug()<<"ArtsControlApplet::resizeEvent( TQResizeEvent * )"<<endl; } -void ArtsControlApplet::mousePressEvent( QMouseEvent* ev ) { - //kdDebug()<<"ArtsControlApplet::mousePressEvent( QMouseEvent* "<<ev<<" )"<<endl; +void ArtsControlApplet::mousePressEvent( TQMouseEvent* ev ) { + //kdDebug()<<"ArtsControlApplet::mousePressEvent( TQMouseEvent* "<<ev<<" )"<<endl; if ( Qt::RightButton == ev->button() /*|| Qt::LeftButton == ev->button()*/ ) - p->menu->exec( QCursor::pos() ); + p->menu->exec( TQCursor::pos() ); } void ArtsControlApplet::positionChange( Position ) { @@ -122,12 +122,12 @@ kdDebug()<<k_funcinfo<<" position()="<<position()<<endl; { case pTop: case pBottom: - p->layout->setDirection( QBoxLayout::LeftToRight ); + p->layout->setDirection( TQBoxLayout::LeftToRight ); if ( p->barts ) p->vu.direction( Arts::LeftToRight ); break; case pRight: case pLeft: - p->layout->setDirection( QBoxLayout::TopToBottom ); + p->layout->setDirection( TQBoxLayout::TopToBottom ); if ( p->barts ) p->vu.direction( Arts::TopToBottom ); break; default: break; @@ -138,8 +138,8 @@ void ArtsControlAppletPrivate::SVinline() { kdDebug() << k_funcinfo << endl; if ( !svinline ) { svinline = new FFTScopeView( arts->server(), _parent ); - svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( QFrame::Panel|QFrame::Sunken ); - connect( svinline, SIGNAL( closed() ), this, SLOT( SVinline() ) ); + svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( TQFrame::Panel|TQFrame::Sunken ); + connect( svinline, TQT_SIGNAL( closed() ), this, TQT_SLOT( SVinline() ) ); layout->addWidget( svinline ); } else { delete svinline; |