summaryrefslogtreecommitdiffstats
path: root/kmenuedit/menuinfo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /kmenuedit/menuinfo.cpp
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmenuedit/menuinfo.cpp')
-rw-r--r--kmenuedit/menuinfo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kmenuedit/menuinfo.cpp b/kmenuedit/menuinfo.cpp
index affb0bcba..db5df8281 100644
--- a/kmenuedit/menuinfo.cpp
+++ b/kmenuedit/menuinfo.cpp
@@ -53,13 +53,13 @@ void MenuFolderInfo::add(MenuFolderInfo *info, bool initial)
// Remove sub menu (without deleting it)
void MenuFolderInfo::take(MenuFolderInfo *info)
{
- subFolders.take(subFolders.findRef(info));
+ subFolders.take(subFolders.tqfindRef(info));
}
// Remove sub menu (without deleting it)
bool MenuFolderInfo::takeRecursive(MenuFolderInfo *info)
{
- int i = subFolders.findRef(info);
+ int i = subFolders.tqfindRef(info);
if (i >= 0)
{
subFolders.take(i);
@@ -106,7 +106,7 @@ void MenuFolderInfo::take(MenuEntryInfo *entry)
TQString MenuFolderInfo::uniqueMenuCaption(const TQString &caption)
{
TQRegExp r("(.*)(?=-\\d+)");
- TQString cap = (r.search(caption) > -1) ? r.cap(1) : caption;
+ TQString cap = (r.search(caption) > -1) ? TQString(r.cap(1)) : caption;
TQString result = caption;
@@ -134,7 +134,7 @@ TQString MenuFolderInfo::uniqueMenuCaption(const TQString &caption)
TQString MenuFolderInfo::uniqueItemCaption(const TQString &caption, const TQString &exclude)
{
TQRegExp r("(.*)(?=-\\d+)");
- TQString cap = (r.search(caption) > -1) ? r.cap(1) : caption;
+ TQString cap = (r.search(caption) > -1) ? TQString(r.cap(1)) : caption;
TQString result = caption;
@@ -489,14 +489,14 @@ bool MenuEntryInfo::isShortcutAvailable(const KShortcut &_shortcut)
{
s_allShortcuts = new TQStringList(KHotKeys::allShortCuts());
}
- available = !s_allShortcuts->contains(shortcutKey);
+ available = !s_allShortcuts->tqcontains(shortcutKey);
if (available && s_newShortcuts)
{
- available = !s_newShortcuts->contains(shortcutKey);
+ available = !s_newShortcuts->tqcontains(shortcutKey);
}
if (!available && s_freeShortcuts)
{
- available = s_freeShortcuts->contains(shortcutKey);
+ available = s_freeShortcuts->tqcontains(shortcutKey);
}
return available;
}