summaryrefslogtreecommitdiffstats
path: root/kmenuedit/menufile.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kmenuedit/menufile.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmenuedit/menufile.cpp')
-rw-r--r--kmenuedit/menufile.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kmenuedit/menufile.cpp b/kmenuedit/menufile.cpp
index d1582c23b..90cf7b7c7 100644
--- a/kmenuedit/menufile.cpp
+++ b/kmenuedit/menufile.cpp
@@ -297,7 +297,7 @@ void MenuFile::addEntry(const TQString &menuName, const TQString &menuId)
includeNode.appendChild(fileNode);
}
-void MenuFile::setLayout(const TQString &menuName, const TQStringList &layout)
+void MenuFile::setLayout(const TQString &menuName, const TQStringList &tqlayout)
{
m_bDirty = true;
@@ -305,47 +305,47 @@ void MenuFile::setLayout(const TQString &menuName, const TQStringList &layout)
purgeLayout(elem);
- TQDomElement layoutNode = m_doc.createElement(MF_LAYOUT);
- elem.appendChild(layoutNode);
+ TQDomElement tqlayoutNode = m_doc.createElement(MF_LAYOUT);
+ elem.appendChild(tqlayoutNode);
- for(TQStringList::ConstIterator it = layout.begin();
- it != layout.end(); ++it)
+ for(TQStringList::ConstIterator it = tqlayout.begin();
+ it != tqlayout.end(); ++it)
{
TQString li = *it;
if (li == ":S")
{
- layoutNode.appendChild(m_doc.createElement(MF_SEPARATOR));
+ tqlayoutNode.appendChild(m_doc.createElement(MF_SEPARATOR));
}
else if (li == ":M")
{
TQDomElement mergeNode = m_doc.createElement(MF_MERGE);
mergeNode.setAttribute("type", "menus");
- layoutNode.appendChild(mergeNode);
+ tqlayoutNode.appendChild(mergeNode);
}
else if (li == ":F")
{
TQDomElement mergeNode = m_doc.createElement(MF_MERGE);
mergeNode.setAttribute("type", "files");
- layoutNode.appendChild(mergeNode);
+ tqlayoutNode.appendChild(mergeNode);
}
else if (li == ":A")
{
TQDomElement mergeNode = m_doc.createElement(MF_MERGE);
mergeNode.setAttribute("type", "all");
- layoutNode.appendChild(mergeNode);
+ tqlayoutNode.appendChild(mergeNode);
}
else if (li.endsWith("/"))
{
li.truncate(li.length()-1);
TQDomElement menuNode = m_doc.createElement(MF_MENUNAME);
menuNode.appendChild(m_doc.createTextNode(li));
- layoutNode.appendChild(menuNode);
+ tqlayoutNode.appendChild(menuNode);
}
else
{
TQDomElement fileNode = m_doc.createElement(MF_FILENAME);
fileNode.appendChild(m_doc.createTextNode(li));
- layoutNode.appendChild(fileNode);
+ tqlayoutNode.appendChild(fileNode);
}
}
}
@@ -468,7 +468,7 @@ TQString MenuFile::uniqueMenuName(const TQString &menuName, const TQString &newM
for(int n = 1; ++n; )
{
- if (findMenu(elem, result, false).isNull() && !excludeList.contains(result))
+ if (findMenu(elem, result, false).isNull() && !excludeList.tqcontains(result))
return result;
result.truncate(trunc);