summaryrefslogtreecommitdiffstats
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-25 00:05:59 -0600
committerTimothy Pearson <[email protected]>2013-01-25 00:05:59 -0600
commite32adbca5bcb755fbed588660b6b690089210aa6 (patch)
treece5e108577236bc2d1a21d8773b8acf5bbfb0fa2 /src/dolphinview.cpp
parent6d3902bd20c24613b2f13f5c04294ff83f104006 (diff)
downloaddolphin-e32adbca5bcb755fbed588660b6b690089210aa6.tar.gz
dolphin-e32adbca5bcb755fbed588660b6b690089210aa6.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 67db2ee..a33becd 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -244,7 +244,7 @@ void DolphinView::renameSelectedItems()
KURL dest(source.upURL());
dest.addPath(name);
- const bool destExists = KIO::NetAccess::exists(dest, false, view);
+ const bool destExists = TDEIO::NetAccess::exists(dest, false, view);
if (destExists) {
delete progressIndicator;
progressIndicator = 0;
@@ -252,7 +252,7 @@ void DolphinView::renameSelectedItems()
DolphinStatusBar::Error);
break;
}
- else if (KIO::NetAccess::file_move(source, dest)) {
+ else if (TDEIO::NetAccess::file_move(source, dest)) {
// TODO: From the users point of view he executed one 'rename n files' operation,
// but internally we store it as n 'rename 1 file' operations for the undo mechanism.
DolphinCommand command(DolphinCommand::Rename, source, dest);
@@ -538,27 +538,27 @@ void DolphinView::rename(const KURL& source, const TQString& newName)
KURL dest(source.upURL());
dest.addPath(newName);
- const bool destExists = KIO::NetAccess::exists(dest,
+ const bool destExists = TDEIO::NetAccess::exists(dest,
false,
Dolphin::mainWin().activeView());
if (destExists) {
// the destination already exists, hence ask the user
// how to proceed...
- KIO::RenameDlg renameDialog(this,
+ TDEIO::RenameDlg renameDialog(this,
i18n("File Already Exists"),
source.path(),
dest.path(),
- KIO::M_OVERWRITE);
+ TDEIO::M_OVERWRITE);
switch (renameDialog.exec()) {
- case KIO::R_OVERWRITE:
+ case TDEIO::R_OVERWRITE:
// the destination should be overwritten
- ok = KIO::NetAccess::file_move(source, dest, -1, true);
+ ok = TDEIO::NetAccess::file_move(source, dest, -1, true);
break;
- case KIO::R_RENAME: {
+ case TDEIO::R_RENAME: {
// a new name for the destination has been used
KURL newDest(renameDialog.newDestURL());
- ok = KIO::NetAccess::file_move(source, newDest);
+ ok = TDEIO::NetAccess::file_move(source, newDest);
break;
}
@@ -571,7 +571,7 @@ void DolphinView::rename(const KURL& source, const TQString& newName)
else {
// no destination exists, hence just move the file to
// do the renaming
- ok = KIO::NetAccess::file_move(source, dest);
+ ok = TDEIO::NetAccess::file_move(source, dest);
}
if (ok) {
@@ -971,7 +971,7 @@ TQString DolphinView::selectionStatusBarText() const
int fileCount = 0;
int folderCount = 0;
- KIO::filesize_t byteSize = 0;
+ TDEIO::filesize_t byteSize = 0;
for (KFileItemListIterator it(*list); it.current() != 0; ++it) {
KFileItem* item = it.current();
if (item->isDir()) {
@@ -992,7 +992,7 @@ TQString DolphinView::selectionStatusBarText() const
}
if (fileCount > 0) {
- const TQString sizeText(KIO::convertSize(byteSize));
+ const TQString sizeText(TDEIO::convertSize(byteSize));
text += i18n("1 File selected (%1)", "%n Files selected (%1)", fileCount).arg(sizeText);
}