summaryrefslogtreecommitdiffstats
path: root/kdat/VerifyOptDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdat/VerifyOptDlg.cpp')
-rw-r--r--kdat/VerifyOptDlg.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kdat/VerifyOptDlg.cpp b/kdat/VerifyOptDlg.cpp
index 3eb272d..f65d41f 100644
--- a/kdat/VerifyOptDlg.cpp
+++ b/kdat/VerifyOptDlg.cpp
@@ -18,10 +18,10 @@
#include <unistd.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqlistbox.h>
#include <kapplication.h>
#include <kfiledialog.h>
@@ -33,8 +33,8 @@
#include "VerifyOptDlg.moc"
-VerifyOptDlg::VerifyOptDlg( const QString & def, const QStringList& files, bool restore, QWidget* parent, const char* name )
- : QDialog( parent, name, TRUE ),
+VerifyOptDlg::VerifyOptDlg( const TQString & def, const TQStringList& files, bool restore, TQWidget* parent, const char* name )
+ : TQDialog( parent, name, TRUE ),
_restore( restore )
{
if ( _restore ) {
@@ -45,30 +45,30 @@ VerifyOptDlg::VerifyOptDlg( const QString & def, const QStringList& files, bool
setCaption( i18n( "KDat: Verify Options" ) );
}
- QLabel* lbl1;
+ TQLabel* lbl1;
if ( _restore ) {
- lbl1 = new QLabel( i18n( "Restore to folder:" ), this );
+ lbl1 = new TQLabel( i18n( "Restore to folder:" ), this );
} else {
- lbl1 = new QLabel( i18n( "Verify in folder:" ), this );
+ lbl1 = new TQLabel( i18n( "Verify in folder:" ), this );
}
lbl1->setFixedSize( lbl1->sizeHint() );
- _entry = new QLineEdit( this );
+ _entry = new TQLineEdit( this );
_entry->setText( def );
_entry->setFixedHeight( _entry->sizeHint().height() );
- QPushButton* browse = new QPushButton( i18n( "..." ), this );
+ TQPushButton* browse = new TQPushButton( i18n( "..." ), this );
browse->setFixedSize( browse->sizeHint() );
- QLabel* lbl2;
+ TQLabel* lbl2;
if ( _restore ) {
- lbl2 = new QLabel( i18n( "Restore files:" ), this );
+ lbl2 = new TQLabel( i18n( "Restore files:" ), this );
} else {
- lbl2 = new QLabel( i18n( "Verify files:" ), this );
+ lbl2 = new TQLabel( i18n( "Verify files:" ), this );
}
lbl2->setFixedHeight( lbl2->sizeHint().height() );
- QListBox* fileList = new QListBox( this );
+ TQListBox* fileList = new TQListBox( this );
fileList->insertStringList(files);
KPushButton* ok = new KPushButton( KStdGuiItem::ok(), this );
@@ -76,9 +76,9 @@ VerifyOptDlg::VerifyOptDlg( const QString & def, const QStringList& files, bool
KPushButton* cancel = new KPushButton( KStdGuiItem::cancel(), this );
cancel->setFixedSize( 80, cancel->sizeHint().height() );
- QVBoxLayout* l1 = new QVBoxLayout( this, 8, 4 );
+ TQVBoxLayout* l1 = new TQVBoxLayout( this, 8, 4 );
- QHBoxLayout* l1_1 = new QHBoxLayout();
+ TQHBoxLayout* l1_1 = new TQHBoxLayout();
l1->addLayout( l1_1 );
l1_1->addWidget( lbl1 );
l1_1->addWidget( _entry, 1 );
@@ -87,7 +87,7 @@ VerifyOptDlg::VerifyOptDlg( const QString & def, const QStringList& files, bool
l1->addWidget( lbl2 );
l1->addWidget( fileList, 1 );
- QHBoxLayout* l1_2 = new QHBoxLayout();
+ TQHBoxLayout* l1_2 = new TQHBoxLayout();
l1->addLayout( l1_2, 0 );
l1_2->addStretch( 1 );
l1_2->addWidget( ok, 0 );
@@ -98,10 +98,10 @@ VerifyOptDlg::VerifyOptDlg( const QString & def, const QStringList& files, bool
_entry->setFocus();
_entry->selectAll();
- connect( _entry, SIGNAL( returnPressed() ), this, SLOT( okClicked() ) );
- connect( browse, SIGNAL( clicked() ) , this, SLOT( slotBrowse() ) );
- connect( ok , SIGNAL( clicked() ) , this, SLOT( okClicked() ) );
- connect( cancel, SIGNAL( clicked() ) , this, SLOT( reject() ) );
+ connect( _entry, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( okClicked() ) );
+ connect( browse, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( slotBrowse() ) );
+ connect( ok , TQT_SIGNAL( clicked() ) , this, TQT_SLOT( okClicked() ) );
+ connect( cancel, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( reject() ) );
}
VerifyOptDlg::~VerifyOptDlg()
@@ -114,14 +114,14 @@ void VerifyOptDlg::okClicked()
accept();
}
-QString VerifyOptDlg::getWorkingDirectory()
+TQString VerifyOptDlg::getWorkingDirectory()
{
return _workingDir;
}
void VerifyOptDlg::slotBrowse()
{
- QString tmp;
+ TQString tmp;
tmp = KFileDialog::getExistingDirectory( _entry->text() );
if ( tmp.length() ) {
_entry->setText( tmp );