diff options
Diffstat (limited to 'kftpgrabber/src/widgets/searchdialog.cpp')
-rw-r--r-- | kftpgrabber/src/widgets/searchdialog.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kftpgrabber/src/widgets/searchdialog.cpp b/kftpgrabber/src/widgets/searchdialog.cpp index ade32c3..9fc380d 100644 --- a/kftpgrabber/src/widgets/searchdialog.cpp +++ b/kftpgrabber/src/widgets/searchdialog.cpp @@ -39,18 +39,18 @@ #include "kftpbookmarks.h" #include "kftpqueue.h" -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qspinbox.h> -#include <qregexp.h> +#include <ntqcheckbox.h> +#include <ntqgroupbox.h> +#include <ntqspinbox.h> +#include <ntqregexp.h> -#include <klocale.h> +#include <tdelocale.h> #include <klineedit.h> #include <kpassdlg.h> namespace KFTPWidgets { -SearchDialog::SearchDialog(QWidget *parent, const char *name) +SearchDialog::SearchDialog(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Search & Replace"), Ok|Cancel, Ok) { // Create the main widget @@ -58,19 +58,19 @@ SearchDialog::SearchDialog(QWidget *parent, const char *name) // Set the dialog options setMainWidget(m_layout); - setInitialSize(QSize(500,400)); + setInitialSize(TQSize(500,400)); connect(m_layout->searchServer, SIGNAL(clicked()), this, SLOT(slotSearchServerClicked())); connect(m_layout->searchServerName, SIGNAL(siteChanged(KFTPBookmarks::Site*)), this, SLOT(slotSiteChanged(KFTPBookmarks::Site*))); } -QString SearchDialog::replaceCap(QStringList cap, const QString &text) +TQString SearchDialog::replaceCap(TQStringList cap, const TQString &text) { - QString tmp = text; + TQString tmp = text; - QStringList::Iterator end( cap.end() ); - for(QStringList::Iterator i( cap.begin() ); i != end; ++i) { - tmp.replace("$" + QString::number(cap.findIndex(*i)), *i); + TQStringList::Iterator end( cap.end() ); + for(TQStringList::Iterator i( cap.begin() ); i != end; ++i) { + tmp.replace("$" + TQString::number(cap.findIndex(*i)), *i); } return tmp; @@ -78,7 +78,7 @@ QString SearchDialog::replaceCap(QStringList cap, const QString &text) void SearchDialog::replace(KFTPQueue::Transfer *i) { - QRegExp s, d; + TQRegExp s, d; s.setPattern(m_layout->searchSrcPath->text()); d.setPattern(m_layout->searchDstPath->text()); @@ -115,7 +115,7 @@ void SearchDialog::searchAndReplace(KFTPQueue::QueueObject *parent) if (parent->isLocked()) return; - QPtrList<KFTPQueue::QueueObject> list = parent->getChildrenList(); + TQPtrList<KFTPQueue::QueueObject> list = parent->getChildrenList(); KFTPQueue::QueueObject *i; for (i = list.first(); i; i = list.next()) { |