summaryrefslogtreecommitdiffstats
path: root/src/renamedialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
commit7a741e43ff09e70396a918956219b8316c48e522 (patch)
tree3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/renamedialog.cpp
parenta48487ef0c329434b58b6f920111bb0999f1109e (diff)
downloaddolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz
dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/renamedialog.cpp')
-rw-r--r--src/renamedialog.cpp18
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);
}