From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krec/krecfileview.cpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'krec/krecfileview.cpp') 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 #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include -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( "" ), this ); + _layout_td = new TQBoxLayout( this, TQBoxLayout::TopToBottom, 5, 5 ); + _filename = new TQLabel( i18n( "" ), 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( "" ) ); - _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 );} -- cgit v1.2.3