summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/doctreeview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/treeviews/doctreeview.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/treeviews/doctreeview.cpp')
-rw-r--r--quanta/treeviews/doctreeview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/quanta/treeviews/doctreeview.cpp b/quanta/treeviews/doctreeview.cpp
index d0234faf..0541b25b 100644
--- a/quanta/treeviews/doctreeview.cpp
+++ b/quanta/treeviews/doctreeview.cpp
@@ -35,8 +35,8 @@
#include "docfolder.h"
#include "docitem.h"
-DocTreeView::DocTreeView(TQWidget *parent, const char *name )
- : KListView(parent,name)
+DocTreeView::DocTreeView(TQWidget *tqparent, const char *name )
+ : KListView(tqparent,name)
{
contextHelpDict = new TQDict<TQString>( 101, false );
@@ -54,7 +54,7 @@ DocTreeView::DocTreeView(TQWidget *parent, const char *name )
projectDocFolder = new KListViewItem(this, i18n("Project Documentation"));
projectDocFolder->setOpen(true);
slotRefreshTree();
- setFocusPolicy(TQWidget::ClickFocus);
+ setFocusPolicy(TQ_ClickFocus);
connect(this, TQT_SIGNAL(executed(TQListViewItem *)), TQT_SLOT(clickItem(TQListViewItem *)) );
connect(this, TQT_SIGNAL(returnPressed(TQListViewItem *)), TQT_SLOT(clickItem(TQListViewItem *)));
@@ -138,11 +138,11 @@ void DocTreeView::clickItem( TQListViewItem *)
TQString * DocTreeView::contextHelp(const TQString &keyword)
{
- TQString word = keyword.mid(keyword.find("|"));
- if (contextHelpDict->find(keyword))
- return contextHelpDict->find(keyword);
+ TQString word = keyword.mid(keyword.tqfind("|"));
+ if (contextHelpDict->tqfind(keyword))
+ return contextHelpDict->tqfind(keyword);
else
- return contextHelpDict->find(word); //to support old documentation packages
+ return contextHelpDict->tqfind(word); //to support old documentation packages
}
void DocTreeView::slotDoubleClicked(TQListViewItem *item )
@@ -156,7 +156,7 @@ void DocTreeView::slotDoubleClicked(TQListViewItem *item )
void DocTreeView::slotAddProjectDoc(const KURL& url)
{
TQString path = url.path();
- int pos = path.find("/doc/");
+ int pos = path.tqfind("/doc/");
path = path.mid(pos + 5);
new DocItem(projectDocFolder, path, url.url());
}