summaryrefslogtreecommitdiffstats
path: root/src/gvcore/fileopobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/fileopobject.cpp')
-rw-r--r--src/gvcore/fileopobject.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/gvcore/fileopobject.cpp b/src/gvcore/fileopobject.cpp
index 0d565b5..38dbe6b 100644
--- a/src/gvcore/fileopobject.cpp
+++ b/src/gvcore/fileopobject.cpp
@@ -19,10 +19,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-// Qt
-#include <qfile.h>
-#include <qstylesheet.h>
-#include <qwidget.h>
+// TQt
+#include <tqfile.h>
+#include <tqstylesheet.h>
+#include <tqwidget.h>
// KDE
#include <kdeversion.h>
@@ -51,8 +51,8 @@ namespace Gwenview {
*/
class DirSelectDialog : public KFileDialog {
public:
- DirSelectDialog(const QString& startDir, QWidget* parent)
- : KFileDialog(startDir, QString::null, parent, "dirselectdialog", true) {
+ DirSelectDialog(const TQString& startDir, TQWidget* tqparent)
+ : KFileDialog(startDir, TQString(), tqparent, "dirselectdialog", true) {
locationEdit->setEnabled(false);
filterWidget->setEnabled(false);
setMode(KFile::Directory | KFile::ExistingOnly);
@@ -64,15 +64,15 @@ public:
//-FileOpObject--------------------------------------------------------------------
-FileOpObject::FileOpObject(const KURL& url,QWidget* parent)
-: mParent(parent)
+FileOpObject::FileOpObject(const KURL& url,TQWidget* tqparent)
+: mParent(tqparent)
{
mURLList.append(url);
}
-FileOpObject::FileOpObject(const KURL::List& list,QWidget* parent)
-: mParent(parent), mURLList(list)
+FileOpObject::FileOpObject(const KURL::List& list,TQWidget* tqparent)
+: mParent(tqparent), mURLList(list)
{}
@@ -89,9 +89,9 @@ void FileOpObject::slotResult(KIO::Job* job) {
void FileOpObject::polishJob(KIO::Job* job) {
- job->setWindow(mParent->topLevelWidget());
- connect( job, SIGNAL( result(KIO::Job*) ),
- this, SLOT( slotResult(KIO::Job*) ) );
+ job->setWindow(mParent->tqtopLevelWidget());
+ connect( job, TQT_SIGNAL( result(KIO::Job*) ),
+ this, TQT_SLOT( slotResult(KIO::Job*) ) );
}
@@ -102,13 +102,13 @@ void FileOpCopyToObject::operator()() {
KURL destURL;
if (FileOperationConfig::confirmCopy()) {
- QString destDir = FileOperationConfig::destDir();
+ TQString destDir = FileOperationConfig::destDir();
if( !destDir.isEmpty()) {
destDir += "/";
}
if (mURLList.size()==1) {
destURL=KFileDialog::getSaveURL(destDir + mURLList.first().fileName(),
- QString::null, mParent, i18n("Copy File"));
+ TQString(), mParent, i18n("Copy File"));
} else {
DirSelectDialog dialog(destDir, mParent);
dialog.setCaption(i18n("Select Folder Where Files Will be Copied"));
@@ -134,13 +134,13 @@ void FileOpLinkToObject::operator()() {
KURL destURL;
if (FileOperationConfig::confirmCopy()) {
- QString destDir = FileOperationConfig::destDir();
+ TQString destDir = FileOperationConfig::destDir();
if( !destDir.isEmpty()) {
destDir += "/";
}
if (mURLList.size()==1) {
destURL=KFileDialog::getSaveURL(destDir + mURLList.first().fileName(),
- QString::null, mParent, i18n("Link File"));
+ TQString(), mParent, i18n("Link File"));
} else {
DirSelectDialog dialog(destDir, mParent);
dialog.setCaption(i18n("Select Folder Where the Files Will be Linked"));
@@ -163,13 +163,13 @@ void FileOpMoveToObject::operator()() {
KURL destURL;
if (FileOperationConfig::confirmMove()) {
- QString destDir = FileOperationConfig::destDir();
+ TQString destDir = FileOperationConfig::destDir();
if( !destDir.isEmpty()) {
destDir += "/";
}
if (mURLList.size()==1) {
destURL=KFileDialog::getSaveURL(destDir + mURLList.first().fileName(),
- QString::null, mParent, i18n("Move File"));
+ TQString(), mParent, i18n("Move File"));
} else {
DirSelectDialog dialog(destDir, mParent);
dialog.setCaption(i18n("Select Folder Where Files Will be Moved"));
@@ -195,7 +195,7 @@ void FileOpMakeDirObject::operator()() {
dlg.setButtonOK( KGuiItem(i18n("Create Folder"), "folder_new") );
if (!dlg.exec()) return;
- QString newDir = dlg.lineEdit()->text();
+ TQString newDir = dlg.lineEdit()->text();
KURL newURL(mURLList.first());
newURL.addPath(newDir);
@@ -249,7 +249,7 @@ void FileOpTrashObject::operator()() {
if (FileOperationConfig::confirmDelete()) {
int response;
if (mURLList.count()>1) {
- QStringList fileList;
+ TQStringList fileList;
KURL::List::ConstIterator it=mURLList.begin();
for (; it!=mURLList.end(); ++it) {
fileList.append((*it).filename());
@@ -257,9 +257,9 @@ void FileOpTrashObject::operator()() {
response=KMessageBox::warningContinueCancelList(mParent,
i18n("Do you really want to trash these files?"),fileList,i18n("Trash used as a verb", "Trash Files"),KGuiItem(i18n("Trash used as a verb", "&Trash"),"edittrash"));
} else {
- QString filename=QStyleSheet::escape(mURLList.first().filename());
+ TQString filename=TQStyleSheet::escape(mURLList.first().filename());
response=KMessageBox::warningContinueCancel(mParent,
- i18n("<p>Do you really want to move <b>%1</b> to the trash?</p>").arg(filename),i18n("Trash used as a verb", "Trash File"),KGuiItem(i18n("Trash used as a verb", "&Trash"),"edittrash"));
+ i18n("<p>Do you really want to move <b>%1</b> to the trash?</p>").tqarg(filename),i18n("Trash used as a verb", "Trash File"),KGuiItem(i18n("Trash used as a verb", "&Trash"),"edittrash"));
}
if (response!=KMessageBox::Continue) return;
}
@@ -274,7 +274,7 @@ void FileOpRealDeleteObject::operator()() {
if (FileOperationConfig::confirmDelete()) {
int response;
if (mURLList.count()>1) {
- QStringList fileList;
+ TQStringList fileList;
KURL::List::ConstIterator it=mURLList.begin();
for (; it!=mURLList.end(); ++it) {
fileList.append((*it).filename());
@@ -285,9 +285,9 @@ void FileOpRealDeleteObject::operator()() {
KStdGuiItem::del()
);
} else {
- QString filename=QStyleSheet::escape(mURLList.first().filename());
+ TQString filename=TQStyleSheet::escape(mURLList.first().filename());
response=KMessageBox::warningContinueCancel(mParent,
- i18n("<p>Do you really want to delete <b>%1</b>?</p>").arg(filename),
+ i18n("<p>Do you really want to delete <b>%1</b>?</p>").tqarg(filename),
i18n("Delete File"),
KStdGuiItem::del()
);
@@ -306,14 +306,14 @@ void FileOpRenameObject::operator()() {
KURL srcURL=mURLList.first();
// Prompt for the new filename
- QString filename = srcURL.filename();
+ TQString filename = srcURL.filename();
InputDialog dlg(mParent);
dlg.setCaption(i18n("Renaming File"));
- dlg.setLabel(i18n("<p>Rename file <b>%1</b> to:</p>").arg(QStyleSheet::escape(filename)));
+ dlg.setLabel(i18n("<p>Rename file <b>%1</b> to:</p>").tqarg(TQStyleSheet::escape(filename)));
dlg.setButtonOK( KGuiItem(i18n("&Rename"), "edit") );
dlg.lineEdit()->setText(filename);
- int extPos = filename.findRev('.');
+ int extPos = filename.tqfindRev('.');
if (extPos != -1) {
if (filename.mid(extPos - 4, 4) == ".tar") {
// Special case: *.tar.*