summaryrefslogtreecommitdiffstats
path: root/kmenuedit/menufile.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 04:10:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 04:10:07 +0000
commitfd3a982e26813f5bcc82c7e89ce6fa2ad44432bf (patch)
tree9eda848e56fcb862fdfdf479adeccd95b6fe387a /kmenuedit/menufile.cpp
parent02f67d0e1355b79b1806746efb0f2f640e57f13d (diff)
downloadtdebase-fd3a982e26813f5bcc82c7e89ce6fa2ad44432bf.tar.gz
tdebase-fd3a982e26813f5bcc82c7e89ce6fa2ad44432bf.zip
Revert automated changes
Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1212480 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 90cf7b7c7..d1582c23b 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 &tqlayout)
+void MenuFile::setLayout(const TQString &menuName, const TQStringList &layout)
{
m_bDirty = true;
@@ -305,47 +305,47 @@ void MenuFile::setLayout(const TQString &menuName, const TQStringList &tqlayout)
purgeLayout(elem);
- TQDomElement tqlayoutNode = m_doc.createElement(MF_LAYOUT);
- elem.appendChild(tqlayoutNode);
+ TQDomElement layoutNode = m_doc.createElement(MF_LAYOUT);
+ elem.appendChild(layoutNode);
- for(TQStringList::ConstIterator it = tqlayout.begin();
- it != tqlayout.end(); ++it)
+ for(TQStringList::ConstIterator it = layout.begin();
+ it != layout.end(); ++it)
{
TQString li = *it;
if (li == ":S")
{
- tqlayoutNode.appendChild(m_doc.createElement(MF_SEPARATOR));
+ layoutNode.appendChild(m_doc.createElement(MF_SEPARATOR));
}
else if (li == ":M")
{
TQDomElement mergeNode = m_doc.createElement(MF_MERGE);
mergeNode.setAttribute("type", "menus");
- tqlayoutNode.appendChild(mergeNode);
+ layoutNode.appendChild(mergeNode);
}
else if (li == ":F")
{
TQDomElement mergeNode = m_doc.createElement(MF_MERGE);
mergeNode.setAttribute("type", "files");
- tqlayoutNode.appendChild(mergeNode);
+ layoutNode.appendChild(mergeNode);
}
else if (li == ":A")
{
TQDomElement mergeNode = m_doc.createElement(MF_MERGE);
mergeNode.setAttribute("type", "all");
- tqlayoutNode.appendChild(mergeNode);
+ layoutNode.appendChild(mergeNode);
}
else if (li.endsWith("/"))
{
li.truncate(li.length()-1);
TQDomElement menuNode = m_doc.createElement(MF_MENUNAME);
menuNode.appendChild(m_doc.createTextNode(li));
- tqlayoutNode.appendChild(menuNode);
+ layoutNode.appendChild(menuNode);
}
else
{
TQDomElement fileNode = m_doc.createElement(MF_FILENAME);
fileNode.appendChild(m_doc.createTextNode(li));
- tqlayoutNode.appendChild(fileNode);
+ layoutNode.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.tqcontains(result))
+ if (findMenu(elem, result, false).isNull() && !excludeList.contains(result))
return result;
result.truncate(trunc);