diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
commit | bf7f88413be3831a9372d323d02fc0335b9f9188 (patch) | |
tree | 516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/fileoperation.cpp | |
parent | e238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff) | |
download | gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip |
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/fileoperation.cpp')
-rw-r--r-- | src/gvcore/fileoperation.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/gvcore/fileoperation.cpp b/src/gvcore/fileoperation.cpp index fd113cc..8213fcb 100644 --- a/src/gvcore/fileoperation.cpp +++ b/src/gvcore/fileoperation.cpp @@ -1,7 +1,7 @@ // vim: set tabstop=4 shiftwidth=4 noexpandtab /* Gwenview - A simple image viewer for KDE -Copyright 2000-2004 Aurélien Gâteau +Copyright 2000-2004 Aur�lien G�teau This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -21,10 +21,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Self #include "fileoperation.moc" -// Qt -#include <qcursor.h> -#include <qpopupmenu.h> -#include <qobject.h> +// TQt +#include <tqcursor.h> +#include <tqpopupmenu.h> +#include <tqobject.h> // KDE #include <kconfig.h> @@ -40,69 +40,69 @@ namespace Gwenview { namespace FileOperation { -void copyTo(const KURL::List& srcURL,QWidget* parent) { - FileOpObject* op=new FileOpCopyToObject(srcURL,parent); +void copyTo(const KURL::List& srcURL,TQWidget* tqparent) { + FileOpObject* op=new FileOpCopyToObject(srcURL,tqparent); (*op)(); } -void linkTo(const KURL::List& srcURL,QWidget* parent) { - FileOpObject* op=new FileOpLinkToObject(srcURL,parent); +void linkTo(const KURL::List& srcURL,TQWidget* tqparent) { + FileOpObject* op=new FileOpLinkToObject(srcURL,tqparent); (*op)(); } -void moveTo(const KURL::List& srcURL,QWidget* parent,QObject* receiver,const char* slot) { - FileOpObject* op=new FileOpMoveToObject(srcURL,parent); - if (receiver && slot) QObject::connect(op,SIGNAL(success()),receiver,slot); +void moveTo(const KURL::List& srcURL,TQWidget* tqparent,TQObject* receiver,const char* slot) { + FileOpObject* op=new FileOpMoveToObject(srcURL,tqparent); + if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); (*op)(); } -void makeDir(const KURL& parentURL, QWidget* parent, QObject* receiver, const char* slot) { - FileOpObject* op=new FileOpMakeDirObject(parentURL, parent); - if (receiver && slot) QObject::connect(op,SIGNAL(success()),receiver,slot); +void makeDir(const KURL& tqparentURL, TQWidget* tqparent, TQObject* receiver, const char* slot) { + FileOpObject* op=new FileOpMakeDirObject(tqparentURL, tqparent); + if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); (*op)(); } -void del(const KURL::List& url,QWidget* parent,QObject* receiver,const char* slot) { - FileOpObject* op = new FileOpDelObject(url,parent); - if (receiver && slot) QObject::connect(op,SIGNAL(success()),receiver,slot); +void del(const KURL::List& url,TQWidget* tqparent,TQObject* receiver,const char* slot) { + FileOpObject* op = new FileOpDelObject(url,tqparent); + if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); (*op)(); } -void trash(const KURL::List& url, QWidget* parent, QObject* receiver, const char* slot) { - FileOpObject* op = new FileOpTrashObject(url,parent); - if (receiver && slot) QObject::connect(op,SIGNAL(success()),receiver,slot); +void trash(const KURL::List& url, TQWidget* tqparent, TQObject* receiver, const char* slot) { + FileOpObject* op = new FileOpTrashObject(url,tqparent); + if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); (*op)(); } -void realDelete(const KURL::List& url, QWidget* parent, QObject* receiver, const char* slot) { - FileOpObject* op = new FileOpRealDeleteObject(url,parent); - if (receiver && slot) QObject::connect(op,SIGNAL(success()),receiver,slot); +void realDelete(const KURL::List& url, TQWidget* tqparent, TQObject* receiver, const char* slot) { + FileOpObject* op = new FileOpRealDeleteObject(url,tqparent); + if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); (*op)(); } -void rename(const KURL& url,QWidget* parent,QObject* receiver,const char* slot) { - FileOpObject* op=new FileOpRenameObject(url,parent); - if (receiver && slot) QObject::connect(op,SIGNAL(renamed(const QString&)),receiver,slot); +void rename(const KURL& url,TQWidget* tqparent,TQObject* receiver,const char* slot) { + FileOpObject* op=new FileOpRenameObject(url,tqparent); + if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(renamed(const TQString&)),receiver,slot); (*op)(); } -void fillDropURLMenu(QPopupMenu* menu, const KURL::List& urls, const KURL& target, bool* wasMoved) { - DropMenuContext* context=new DropMenuContext(menu, urls, target, wasMoved); +void fillDropURLMenu(TQPopupMenu* menu, const KURL::List& urls, const KURL& target, bool* wasMoved) { + DropMenuContext* context=new DropMenuContext(TQT_TQOBJECT(menu), urls, target, wasMoved); menu->insertItem( SmallIcon("goto"), i18n("&Move Here"), - context, SLOT(move()) ); + context, TQT_SLOT(move()) ); menu->insertItem( SmallIcon("editcopy"), i18n("&Copy Here"), - context, SLOT(copy()) ); + context, TQT_SLOT(copy()) ); menu->insertItem( SmallIcon("www"), i18n("&Link Here"), - context, SLOT(link()) ); + context, TQT_SLOT(link()) ); } -void openDropURLMenu(QWidget* parent, const KURL::List& urls, const KURL& target, bool* wasMoved) { - QPopupMenu menu(parent); +void openDropURLMenu(TQWidget* tqparent, const KURL::List& urls, const KURL& target, bool* wasMoved) { + TQPopupMenu menu(tqparent); if (wasMoved) *wasMoved=false; fillDropURLMenu(&menu, urls, target, wasMoved); @@ -110,7 +110,7 @@ void openDropURLMenu(QWidget* parent, const KURL::List& urls, const KURL& target menu.insertItem( SmallIcon("cancel"), i18n("Cancel") ); menu.setMouseTracking(true); - menu.exec(QCursor::pos()); + menu.exec(TQCursor::pos()); } |