summaryrefslogtreecommitdiffstats
path: root/src/app/dirviewcontroller.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
commitbf7f88413be3831a9372d323d02fc0335b9f9188 (patch)
tree516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/app/dirviewcontroller.cpp
parente238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff)
downloadgwenview-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/app/dirviewcontroller.cpp')
-rw-r--r--src/app/dirviewcontroller.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/app/dirviewcontroller.cpp b/src/app/dirviewcontroller.cpp
index e0a41c8..214e807 100644
--- a/src/app/dirviewcontroller.cpp
+++ b/src/app/dirviewcontroller.cpp
@@ -1,5 +1,5 @@
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
-// kate: indent-mode csands; indent-width 4; replace-tabs-save off; replace-tabs off; replace-trailing-space-save off; space-indent off; tabs-indents on; tab-width 4;
+// kate: indent-mode csands; indent-width 4; tqreplace-tabs-save off; tqreplace-tabs off; tqreplace-trailing-space-save off; space-indent off; tabs-indents on; tab-width 4;
/*
Gwenview - A simple image viewer for KDE
Copyright 2005 Aurelien Gateau
@@ -22,8 +22,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// Self
#include "dirviewcontroller.moc"
-// Qt
-#include <qpopupmenu.h>
+// TQt
+#include <tqpopupmenu.h>
// KDE
#include <kdebug.h>
@@ -53,18 +53,18 @@ struct DirViewController::Private {
};
-DirViewController::DirViewController(QWidget* parent)
-: QObject(parent)
+DirViewController::DirViewController(TQWidget* tqparent)
+: TQObject(tqparent)
{
d=new Private;
- d->mTreeView=new TreeView(parent);
+ d->mTreeView=new TreeView(tqparent);
- connect(d->mTreeView, SIGNAL(selectionChanged(QListViewItem*)),
- this, SLOT(slotTreeViewSelectionChanged(QListViewItem*)) );
+ connect(d->mTreeView, TQT_SIGNAL(selectionChanged(TQListViewItem*)),
+ this, TQT_SLOT(slotTreeViewSelectionChanged(TQListViewItem*)) );
- connect(d->mTreeView, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- this, SLOT(slotTreeViewContextMenu(KListView*, QListViewItem*, const QPoint&)) );
+ connect(d->mTreeView, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotTreeViewContextMenu(KListView*, TQListViewItem*, const TQPoint&)) );
}
@@ -73,7 +73,7 @@ DirViewController::~DirViewController() {
}
-QWidget* DirViewController::widget() const {
+TQWidget* DirViewController::widget() const {
return d->mTreeView;
}
@@ -83,21 +83,21 @@ void DirViewController::setURL(const KURL& url) {
}
-void DirViewController::slotTreeViewSelectionChanged(QListViewItem* item) {
+void DirViewController::slotTreeViewSelectionChanged(TQListViewItem* item) {
if (!item) return;
LOG(d->mTreeView->currentURL());
emit urlChanged(d->mTreeView->currentURL());
}
-void DirViewController::slotTreeViewContextMenu(KListView*, QListViewItem*, const QPoint& pos) {
- QPopupMenu menu(d->mTreeView);
- menu.insertItem(SmallIcon("folder_new"),i18n("New Folder..."),this,SLOT(makeDir()));
+void DirViewController::slotTreeViewContextMenu(KListView*, TQListViewItem*, const TQPoint& pos) {
+ TQPopupMenu menu(d->mTreeView);
+ menu.insertItem(SmallIcon("folder_new"),i18n("New Folder..."),this,TQT_SLOT(makeDir()));
menu.insertSeparator();
- menu.insertItem(i18n("Rename..."),this,SLOT(renameDir()));
- menu.insertItem(SmallIcon("editdelete"),i18n("Delete"),this,SLOT(removeDir()));
+ menu.insertItem(i18n("Rename..."),this,TQT_SLOT(renameDir()));
+ menu.insertItem(SmallIcon("editdelete"),i18n("Delete"),this,TQT_SLOT(removeDir()));
menu.insertSeparator();
- menu.insertItem(i18n("Properties"),this,SLOT(showPropertiesDialog()));
+ menu.insertItem(i18n("Properties"),this,TQT_SLOT(showPropertiesDialog()));
menu.exec(pos);
}
@@ -105,7 +105,7 @@ void DirViewController::slotTreeViewContextMenu(KListView*, QListViewItem*, cons
void DirViewController::makeDir() {
if (!d->mTreeView->currentItem()) return;
- FileOperation::makeDir(d->mTreeView->currentURL(), d->mTreeView, this, SLOT(slotDirMade()) );
+ FileOperation::makeDir(d->mTreeView->currentURL(), d->mTreeView, this, TQT_SLOT(slotDirMade()) );
}
@@ -128,9 +128,9 @@ void DirViewController::removeDir() {
list << d->mTreeView->currentURL();
FileOperation::del(list, d->mTreeView);
- QListViewItem* item=d->mTreeView->currentItem();
+ TQListViewItem* item=d->mTreeView->currentItem();
if (!item) return;
- item=item->parent();
+ item=item->tqparent();
if (!item) return;
d->mTreeView->setCurrentItem(item);
}