diff options
Diffstat (limited to 'kdat/TapeFileInfoWidget.cpp')
-rw-r--r-- | kdat/TapeFileInfoWidget.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kdat/TapeFileInfoWidget.cpp b/kdat/TapeFileInfoWidget.cpp index de5a453..239d7f1 100644 --- a/kdat/TapeFileInfoWidget.cpp +++ b/kdat/TapeFileInfoWidget.cpp @@ -18,8 +18,8 @@ #include <time.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <kapplication.h> @@ -30,14 +30,14 @@ #include "TapeFileInfoWidget.moc" -TapeFileInfoWidget::TapeFileInfoWidget( QWidget* parent, const char* name ) - : QWidget( parent, name ) +TapeFileInfoWidget::TapeFileInfoWidget( TQWidget* parent, const char* name ) + : TQWidget( parent, name ) { - QLabel* lbl1 = new QLabel( i18n( "File name:" ), this ); - QLabel* lbl2 = new QLabel( i18n( "Last modified:" ), this ); - QLabel* lbl3 = new QLabel( i18n( "Size:" ), this ); - QLabel* lbl4 = new QLabel( i18n( "Start record:" ), this ); - QLabel* lbl5 = new QLabel( i18n( "End record:" ), this ); + TQLabel* lbl1 = new TQLabel( i18n( "File name:" ), this ); + TQLabel* lbl2 = new TQLabel( i18n( "Last modified:" ), this ); + TQLabel* lbl3 = new TQLabel( i18n( "Size:" ), this ); + TQLabel* lbl4 = new TQLabel( i18n( "Start record:" ), this ); + TQLabel* lbl5 = new TQLabel( i18n( "End record:" ), this ); int max = lbl1->sizeHint().width(); if ( lbl2->sizeHint().width() > max ) max = lbl2->sizeHint().width(); @@ -51,44 +51,44 @@ TapeFileInfoWidget::TapeFileInfoWidget( QWidget* parent, const char* name ) lbl4->setFixedSize( max, lbl4->sizeHint().height() ); lbl5->setFixedSize( max, lbl5->sizeHint().height() ); - _fileName = new QLabel( "???", this ); + _fileName = new TQLabel( "???", this ); _fileName->setFixedHeight( _fileName->sizeHint().height() ); - _mtime = new QLabel( "???", this ); + _mtime = new TQLabel( "???", this ); _mtime->setFixedHeight( _mtime->sizeHint().height() ); - _size = new QLabel( "???", this ); + _size = new TQLabel( "???", this ); _size->setFixedHeight( _size->sizeHint().height() ); - _startRecord = new QLabel( "???", this ); + _startRecord = new TQLabel( "???", this ); _startRecord->setFixedHeight( _startRecord->sizeHint().height() ); - _endRecord = new QLabel( "???", this ); + _endRecord = new TQLabel( "???", this ); _endRecord->setFixedHeight( _endRecord->sizeHint().height() ); - QVBoxLayout* l1 = new QVBoxLayout( this, 4, 4 ); + TQVBoxLayout* l1 = new TQVBoxLayout( this, 4, 4 ); - QHBoxLayout* l1_1 = new QHBoxLayout(); + TQHBoxLayout* l1_1 = new TQHBoxLayout(); l1->addLayout( l1_1 ); l1_1->addWidget( lbl1 ); l1_1->addWidget( _fileName, 1 ); - QHBoxLayout* l1_2 = new QHBoxLayout(); + TQHBoxLayout* l1_2 = new TQHBoxLayout(); l1->addLayout( l1_2 ); l1_2->addWidget( lbl2 ); l1_2->addWidget( _mtime, 1 ); - QHBoxLayout* l1_3 = new QHBoxLayout(); + TQHBoxLayout* l1_3 = new TQHBoxLayout(); l1->addLayout( l1_3 ); l1_3->addWidget( lbl3 ); l1_3->addWidget( _size, 1 ); - QHBoxLayout* l1_4 = new QHBoxLayout(); + TQHBoxLayout* l1_4 = new TQHBoxLayout(); l1->addLayout( l1_4 ); l1_4->addWidget( lbl4 ); l1_4->addWidget( _startRecord, 1 ); - QHBoxLayout* l1_5 = new QHBoxLayout(); + TQHBoxLayout* l1_5 = new TQHBoxLayout(); l1->addLayout( l1_5 ); l1_5->addWidget( lbl5 ); l1_5->addWidget( _endRecord, 1 ); @@ -110,7 +110,7 @@ void TapeFileInfoWidget::setFile( File* file ) _fileName->setText( _file->getName() ); - QString tmp; + TQString tmp; time_t tm = _file->getMTime(); tmp = ctime( &tm ); tmp = tmp.stripWhiteSpace(); @@ -121,7 +121,7 @@ void TapeFileInfoWidget::setFile( File* file ) _endRecord->setText( Util::bytesToString( _file->getEndRecord() ) ); if ( _file->isDirectory() ) { - QPtrListIterator<Range> it( _file->getRanges() ); + TQPtrListIterator<Range> it( _file->getRanges() ); int records = 0; for ( ; it.current(); ++it ) { records += it.current()->getEnd() - it.current()->getStart(); |