summaryrefslogtreecommitdiffstats
path: root/kmenuedit/menufile.cpp
diff options
context:
space:
mode:
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 d1582c23..90cf7b7c 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);