diff options
Diffstat (limited to 'krec/krecfileview.cpp')
-rw-r--r-- | krec/krecfileview.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/krec/krecfileview.cpp b/krec/krecfileview.cpp index b3604412..42911620 100644 --- a/krec/krecfileview.cpp +++ b/krec/krecfileview.cpp @@ -21,24 +21,24 @@ #include <kdebug.h> #include <klocale.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qpainter.h> -#include <qpointarray.h> -#include <qlineedit.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqpainter.h> +#include <tqpointarray.h> +#include <tqlineedit.h> -KRecFileView::KRecFileView( QWidget* p, const char* n ) - : QWidget( p,n ) +KRecFileView::KRecFileView( TQWidget* p, const char* n ) + : TQWidget( p,n ) { kdDebug( 60005 ) << k_funcinfo << endl; - _layout_td = new QBoxLayout( this, QBoxLayout::TopToBottom, 5, 5 ); - _filename = new QLabel( i18n( "<no file>" ), this ); + _layout_td = new TQBoxLayout( this, TQBoxLayout::TopToBottom, 5, 5 ); + _filename = new TQLabel( i18n( "<no file>" ), this ); _layout_td->addWidget( _filename, 1 ); _fileview = new KRecFileWidget( 0, this ); _layout_td->addWidget( _fileview, 100 ); _timebar = new KRecTimeBar( this ); _layout_td->addWidget( _timebar, 50 ); - _layout_lr = new QBoxLayout( this, QBoxLayout::LeftToRight, 5, 5 ); + _layout_lr = new TQBoxLayout( this, TQBoxLayout::LeftToRight, 5, 5 ); _layout_td->addLayout( _layout_lr, 1 ); _layout_lr->addStretch( 20 ); _timedisplay = new KRecTimeDisplay( this ); @@ -57,15 +57,15 @@ kdDebug( 60005 ) << k_funcinfo << file << endl; if ( _file ) { if ( !_file->filename().isNull() ) setFilename( _file->filename() ); else _filename->setText( i18n( "file with no name" ) ); - connect( _file, SIGNAL( posChanged( int ) ), this, SLOT( setPos( int ) ) ); - connect( _file, SIGNAL( posChanged( int ) ), _timebar, SLOT( newPos( int ) ) ); - connect( _file, SIGNAL( posChanged( int ) ), _timedisplay, SLOT( newPos( int ) ) ); - connect( _file, SIGNAL( sizeChanged( int ) ), this, SLOT( setSize( int ) ) ); - connect( _file, SIGNAL( sizeChanged( int ) ), _timebar, SLOT( newSize( int ) ) ); - connect( _file, SIGNAL( sizeChanged( int ) ), _timedisplay, SLOT( newSize( int ) ) ); - connect( _file, SIGNAL( filenameChanged( const QString &) ), this, SLOT( setFilename( const QString &) ) ); - connect( _file, SIGNAL( filenameChanged( const QString &) ), _timedisplay, SLOT( newFilename( const QString &) ) ); - connect( _timebar, SIGNAL( sNewPos( int ) ), _file, SLOT( newPos( int ) ) ); + connect( _file, TQT_SIGNAL( posChanged( int ) ), this, TQT_SLOT( setPos( int ) ) ); + connect( _file, TQT_SIGNAL( posChanged( int ) ), _timebar, TQT_SLOT( newPos( int ) ) ); + connect( _file, TQT_SIGNAL( posChanged( int ) ), _timedisplay, TQT_SLOT( newPos( int ) ) ); + connect( _file, TQT_SIGNAL( sizeChanged( int ) ), this, TQT_SLOT( setSize( int ) ) ); + connect( _file, TQT_SIGNAL( sizeChanged( int ) ), _timebar, TQT_SLOT( newSize( int ) ) ); + connect( _file, TQT_SIGNAL( sizeChanged( int ) ), _timedisplay, TQT_SLOT( newSize( int ) ) ); + connect( _file, TQT_SIGNAL( filenameChanged( const TQString &) ), this, TQT_SLOT( setFilename( const TQString &) ) ); + connect( _file, TQT_SIGNAL( filenameChanged( const TQString &) ), _timedisplay, TQT_SLOT( newFilename( const TQString &) ) ); + connect( _timebar, TQT_SIGNAL( sNewPos( int ) ), _file, TQT_SLOT( newPos( int ) ) ); _timebar->newPos( _file->position() ); _timebar->newSize( _file->size() ); _timedisplay->newSamplingRate( _file->samplerate() ); @@ -75,9 +75,9 @@ kdDebug( 60005 ) << k_funcinfo << file << endl; _timedisplay->newPos( _file->position() ); _timedisplay->newSize( _file->size() ); } else { - disconnect( this, SLOT( setPos( QIODevice::Offset ) ) ); + disconnect( this, TQT_SLOT( setPos( TQIODevice::Offset ) ) ); _filename->setText( i18n( "<no file>" ) ); - _timedisplay->newFilename( QString::null ); + _timedisplay->newFilename( TQString::null ); } } } @@ -85,5 +85,5 @@ kdDebug( 60005 ) << k_funcinfo << file << endl; void KRecFileView::updateGUI() { _fileview->resizeEvent(); } void KRecFileView::setPos( int ) {} void KRecFileView::setSize( int ) {} -void KRecFileView::setFilename( const QString &n ) { _filename->setText( n );} +void KRecFileView::setFilename( const TQString &n ) { _filename->setText( n );} |