diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kpf/src/DirSelectWidget.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpf/src/DirSelectWidget.cpp')
-rw-r--r-- | kpf/src/DirSelectWidget.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kpf/src/DirSelectWidget.cpp b/kpf/src/DirSelectWidget.cpp index a405dcb0..92b6ab0a 100644 --- a/kpf/src/DirSelectWidget.cpp +++ b/kpf/src/DirSelectWidget.cpp @@ -39,10 +39,10 @@ namespace KPF DirSelectWidget::DirSelectWidget ( const TQString & pathToMakeVisible, - TQWidget * parent, + TQWidget * tqparent, const char * name ) - : KListView(parent, name) + : KListView(tqparent, name) { d = new Private; d->pathToMakeVisible = pathToMakeVisible; @@ -71,7 +71,7 @@ namespace KPF void DirSelectWidget::timerEvent(TQTimerEvent *) { - killTimers(); + TQT_TQOBJECT(this)->killTimers(); if (0 != firstChild()) firstChild()->setOpen(true); @@ -87,10 +87,10 @@ namespace KPF TQDir dir(p); - const QFileInfoList * entryInfoList = + const TQFileInfoList * entryInfoList = dir.entryInfoList(TQDir::Dirs | TQDir::Readable); - for (QFileInfoListIterator it(*entryInfoList); it.current(); ++it) + for (TQFileInfoListIterator it(*entryInfoList); it.current(); ++it) { if (it.current()->isDir() && it.current()->isReadable()) { @@ -100,12 +100,12 @@ namespace KPF } } - QString + TQString DirSelectWidget::path(TQListViewItem * item) const { TQString ret(item->text(0)); - while (0 != (item = item->parent())) + while (0 != (item = item->tqparent())) ret.prepend("/" + item->text(0)); return ret; |