summaryrefslogtreecommitdiffstats
path: root/kdat/FormatOptDlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kdat/FormatOptDlg.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdat/FormatOptDlg.cpp')
-rw-r--r--kdat/FormatOptDlg.cpp38
1 files changed, 19 insertions, 19 deletions
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 <stdlib.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
#include <kpushbutton.h>
#include <kstdguiitem.h>
@@ -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;
}