diff options
Diffstat (limited to 'src/renamedialog.cpp')
-rw-r--r-- | src/renamedialog.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/renamedialog.cpp b/src/renamedialog.cpp index 7ec8681..5724112 100644 --- a/src/renamedialog.cpp +++ b/src/renamedialog.cpp @@ -20,9 +20,9 @@ #include "renamedialog.h" #include <klocale.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qvbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqvbox.h> #include <assert.h> #include <klineedit.h> @@ -32,24 +32,24 @@ RenameDialog::RenameDialog(const KURL::List& items) : { setButtonOK(KGuiItem(i18n("Rename"), "apply")); - QVBoxLayout* topLayout = new QVBoxLayout(plainPage(), 0, spacingHint()); + TQVBoxLayout* topLayout = new TQVBoxLayout(plainPage(), 0, spacingHint()); topLayout->setMargin(KDialog::marginHint()); const int itemCount = items.count(); - QLabel* editLabel = new QLabel(i18n("Rename the %n selected items to:", "Rename the %n selected items to:", itemCount), + TQLabel* editLabel = new TQLabel(i18n("Rename the %n selected items to:", "Rename the %n selected items to:", itemCount), plainPage()); m_lineEdit = new KLineEdit(plainPage()); m_newName = i18n("New name #"); assert(itemCount > 1); - QString postfix(items[0].prettyURL().section('.',1)); + TQString postfix(items[0].prettyURL().section('.',1)); if (postfix.length() > 0) { // The first item seems to have a postfix (e. g. 'jpg' or 'txt'). Now // check whether all other items have the same postfix. If this is the // case, add this postfix to the name suggestion. postfix.insert(0, '.'); for (int i = 1; i < itemCount; ++i) { - if (!items[i].prettyURL().contains(postfix)) { + if (!items[i].prettyURL().tqcontains(postfix)) { // at least one item does not have the same postfix postfix.truncate(0); break; @@ -65,7 +65,7 @@ RenameDialog::RenameDialog(const KURL::List& items) : m_lineEdit->setSelection(0, selectionLength - 1); m_lineEdit->setFocus(); - QLabel* infoLabel = new QLabel(i18n("(# will be replaced by ascending numbers)"), plainPage()); + TQLabel* infoLabel = new TQLabel(i18n("(# will be replaced by ascending numbers)"), plainPage()); topLayout->addWidget(editLabel); topLayout->addWidget(m_lineEdit); @@ -79,7 +79,7 @@ RenameDialog::~RenameDialog() void RenameDialog::slotOk() { m_newName = m_lineEdit->text(); - if (m_newName.contains('#') != 1) { + if (m_newName.tqcontains('#') != 1) { m_newName.truncate(0); } |