summaryrefslogtreecommitdiffstats
path: root/buildtools/lib/parsers/autotools/tests/viewer.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 /buildtools/lib/parsers/autotools/tests/viewer.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 'buildtools/lib/parsers/autotools/tests/viewer.cpp')
-rw-r--r--buildtools/lib/parsers/autotools/tests/viewer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/buildtools/lib/parsers/autotools/tests/viewer.cpp b/buildtools/lib/parsers/autotools/tests/viewer.cpp
index 0dc8e733..66401c2c 100644
--- a/buildtools/lib/parsers/autotools/tests/viewer.cpp
+++ b/buildtools/lib/parsers/autotools/tests/viewer.cpp
@@ -34,8 +34,8 @@
using namespace AutoTools;
-Viewer::Viewer(TQWidget *parent, const char *name)
- :ViewerBase(parent, name)
+Viewer::Viewer(TQWidget *tqparent, const char *name)
+ :ViewerBase(tqparent, name)
{
if (TQFile::exists(TQDir::currentDirPath() + "/" + "qtlist"))
{
@@ -46,7 +46,7 @@ Viewer::Viewer(TQWidget *parent, const char *name)
files->insertItem(str.readLine());
}
ast->setSorting(-1);
- parentProject.push((TQListViewItem*)0);
+ tqparentProject.push((TQListViewItem*)0);
}
void Viewer::addAll_clicked()
@@ -99,12 +99,12 @@ void Viewer::tabWidget2_selected(const TQString& text)
void Viewer::processAST(ProjectAST *projectAST, TQListViewItem *globAfter)
{
TQListViewItem *projectIt;
- if (!parentProject.top())
+ if (!tqparentProject.top())
projectIt = new TQListViewItem(ast, "Project");
else
{
if ( projectAST->isConditionalScope() || projectAST->isRule() )
- projectIt = new TQListViewItem(parentProject.top(), globAfter, projectAST->scopedID);
+ projectIt = new TQListViewItem(tqparentProject.top(), globAfter, projectAST->scopedID);
}
projectIt->setOpen(true);
@@ -128,7 +128,7 @@ void Viewer::processAST(ProjectAST *projectAST, TQListViewItem *globAfter)
{
AutomakeTargetAST* ata = static_cast<AutomakeTargetAST*>(ast);
TQListViewItem* item = new TQListViewItem(projectIt, after,
- ata->target, TQString::null, ata->deps.join(""));
+ ata->target, TQString(), ata->deps.join(""));
after = item;
}
break;
@@ -145,14 +145,14 @@ void Viewer::processAST(ProjectAST *projectAST, TQListViewItem *globAfter)
{
ConditionAST* ata = static_cast<ConditionAST*>(ast);
TQListViewItem* item = new TQListViewItem(projectIt, after,
- ata->type, ata->conditionName, TQString::null );
+ ata->type, ata->conditionName, TQString() );
after = item;
}
case AST::ProjectAST: {
ProjectAST *projectAST = static_cast<ProjectAST*>(ast);
- parentProject.push(projectIt);
+ tqparentProject.push(projectIt);
processAST(projectAST, after);
- parentProject.pop(); }
+ tqparentProject.pop(); }
break;
}
}