From aa3a1ca934bc541bddd3fa136a85f106f7da266e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:25:18 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdat/FormatOptDlg.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kdat/FormatOptDlg.cpp') diff --git a/kdat/FormatOptDlg.cpp b/kdat/FormatOptDlg.cpp index 8ed79f9..81a74f4 100644 --- a/kdat/FormatOptDlg.cpp +++ b/kdat/FormatOptDlg.cpp @@ -18,10 +18,10 @@ #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -34,14 +34,14 @@ #include "FormatOptDlg.moc" -FormatOptDlg::FormatOptDlg( const QString & def, QWidget* parent, const char* name ) - : QDialog( parent, name, TRUE ) +FormatOptDlg::FormatOptDlg( const TQString & def, TQWidget* parent, const char* name ) + : TQDialog( parent, name, TRUE ) { setIconText( i18n( "KDat: Format Options" ) ); setCaption( i18n( "KDat: Format Options" ) ); - QLabel* lbl1 = new QLabel( i18n( "Tape name:" ), this ); - QLabel* lbl2 = new QLabel( i18n( "Tape size:" ), this ); + TQLabel* lbl1 = new TQLabel( i18n( "Tape name:" ), this ); + TQLabel* lbl2 = new TQLabel( i18n( "Tape size:" ), this ); int max = lbl1->sizeHint().width(); if ( lbl2->sizeHint().width() > max ) max = lbl2->sizeHint().width(); @@ -49,14 +49,14 @@ FormatOptDlg::FormatOptDlg( const QString & def, QWidget* parent, const char* na lbl1->setFixedSize( max, lbl1->sizeHint().height() ); lbl2->setFixedSize( max, lbl2->sizeHint().height() ); - _entry = new QLineEdit( this ); + _entry = new TQLineEdit( this ); _entry->setText( def ); _entry->setFixedHeight( _entry->sizeHint().height() ); - _tapeSize = new QLineEdit( this ); + _tapeSize = new TQLineEdit( this ); _tapeSize->setFixedSize( 48, _tapeSize->sizeHint().height() ); - _tapeSizeUnits = new QComboBox( this ); + _tapeSizeUnits = new TQComboBox( this ); _tapeSizeUnits->setFixedSize( 48, _tapeSizeUnits->sizeHint().height() ); _tapeSizeUnits->insertItem( "MB" ); _tapeSizeUnits->insertItem( "GB" ); @@ -66,10 +66,10 @@ FormatOptDlg::FormatOptDlg( const QString & def, QWidget* parent, const char* na KPushButton* cancel = new KPushButton( KStdGuiItem::cancel(), this ); cancel->setFixedSize( 80, cancel->sizeHint().height() ); - QVBoxLayout* l1 = new QVBoxLayout( this, 8, 4 ); - QHBoxLayout* l2 = new QHBoxLayout(); - QHBoxLayout* l3 = new QHBoxLayout(); - QHBoxLayout* l4 = new QHBoxLayout(); + TQVBoxLayout* l1 = new TQVBoxLayout( this, 8, 4 ); + TQHBoxLayout* l2 = new TQHBoxLayout(); + TQHBoxLayout* l3 = new TQHBoxLayout(); + TQHBoxLayout* l4 = new TQHBoxLayout(); l1->addLayout( l2, 0 ); l1->addLayout( l3, 0 ); @@ -94,9 +94,9 @@ FormatOptDlg::FormatOptDlg( const QString & def, QWidget* parent, const char* na _entry->setFocus(); _entry->selectAll(); - connect( _entry, SIGNAL( returnPressed() ), this, SLOT( okClicked() ) ); - connect( ok , SIGNAL( clicked() ) , this, SLOT( okClicked() ) ); - connect( cancel, SIGNAL( clicked() ) , this, SLOT( reject() ) ); + connect( _entry, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( okClicked() ) ); + connect( ok , TQT_SIGNAL( clicked() ) , this, TQT_SLOT( okClicked() ) ); + connect( cancel, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( reject() ) ); int size = Options::instance()->getDefaultTapeSize(); if ( ( size >= 1024*1024 ) && ( size % ( 1024*1024 ) == 0 ) ) { @@ -131,7 +131,7 @@ void FormatOptDlg::okClicked() accept(); } -QString FormatOptDlg::getName() +TQString FormatOptDlg::getName() { return _name; } -- cgit v1.2.1