summaryrefslogtreecommitdiffstats
path: root/parts/filelist/projectviewpart.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/filelist/projectviewpart.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/filelist/projectviewpart.cpp')
-rw-r--r--parts/filelist/projectviewpart.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/parts/filelist/projectviewpart.cpp b/parts/filelist/projectviewpart.cpp
index 91b46b53..c3341cd8 100644
--- a/parts/filelist/projectviewpart.cpp
+++ b/parts/filelist/projectviewpart.cpp
@@ -68,8 +68,8 @@ K_EXPORT_COMPONENT_FACTORY(libkdevfilelist, projectviewFactory(data))
#define GLOBALDOC_OPTIONS 1
#define PROJECTDOC_OPTIONS 2
-ProjectviewPart::ProjectviewPart(TQObject *parent, const char *name, const TQStringList &/*args*/)
- : KDevPlugin(&data, parent, name ? name : "FileListPart")
+ProjectviewPart::ProjectviewPart(TQObject *tqparent, const char *name, const TQStringList &/*args*/)
+ : KDevPlugin(&data, tqparent, name ? name : "FileListPart")
{
setInstance(projectviewFactory::instance());
setXMLFile("kdevfilelist.rc");
@@ -107,7 +107,7 @@ ProjectviewPart::~ProjectviewPart()
delete m_guibuilder;
if ( m_widget ) {
mainWindow()->removeView( m_widget );
- delete m_widget; // deletes the children as well
+ delete m_widget; // deletes the tqchildren as well
}
}
@@ -389,7 +389,7 @@ void ProjectviewPart::slotOpenProjectView(const TQString &view)
m_currentProjectView = view;
- if (m_projectViews.contains(view) > 0)
+ if (m_projectViews.tqcontains(view) > 0)
{
FileInfoList viewUrls = m_projectViews[view];
@@ -400,7 +400,7 @@ void ProjectviewPart::slotOpenProjectView(const TQString &view)
for (KURL::List::Iterator it = urlsToClose.begin(); it != urlsToClose.end(); ++it)
{
// it is in the list of wanted files and do we want it at all
- if ((viewUrls.contains(*it) > 0) && (!onlyProject || !project() || project()->isProjectFile((*it).path()) ))
+ if ((viewUrls.tqcontains(*it) > 0) && (!onlyProject || !project() || project()->isProjectFile((*it).path()) ))
{
viewUrls.remove(*it); // don't open if it is open already
it = urlsToClose.remove(it);
@@ -439,7 +439,7 @@ void ProjectviewPart::adjustViewActions()
m_openPrjViewAction->clear();
m_openPrjViewAction->setItems(viewList);
- int i = viewList.findIndex(m_currentProjectView);
+ int i = viewList.tqfindIndex(m_currentProjectView);
if (i > -1)
{
m_openPrjViewAction->setCurrentItem(i);
@@ -490,8 +490,8 @@ void ProjectviewPart::slotSaveAsProjectView(bool askForName)
return;
}
newProjectView = newProjectView.remove("="); // we use this string in config files and = would confuse it
- if (m_projectViews.contains(newProjectView) > 0 &&
- KMessageBox::warningContinueCancel(mainWindow()->main(), i18n("<qt>A view session named <b>%1</b> already exists.<br>Do you want to overwrite it?</qt>").arg(newProjectView), TQString::null, i18n("Overwrite")) != KMessageBox::Continue)
+ if (m_projectViews.tqcontains(newProjectView) > 0 &&
+ KMessageBox::warningContinueCancel(mainWindow()->main(), i18n("<qt>A view session named <b>%1</b> already exists.<br>Do you want to overwrite it?</qt>").tqarg(newProjectView), TQString(), i18n("Overwrite")) != KMessageBox::Continue)
{
return;
}