summaryrefslogtreecommitdiffstats
path: root/libkonq/konq_popupmenu.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit9a3f0aacd44fb866833ebcb852df3cd31475cb33 (patch)
tree9f699684624f4e78e13e7dd2393a103cc6fa8274 /libkonq/konq_popupmenu.cc
parent341ad02235b9c85cd31782225181ed475b74eaa3 (diff)
downloadtdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.tar.gz
tdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkonq/konq_popupmenu.cc')
-rw-r--r--libkonq/konq_popupmenu.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/libkonq/konq_popupmenu.cc b/libkonq/konq_popupmenu.cc
index c828c4aa8..8d14132ef 100644
--- a/libkonq/konq_popupmenu.cc
+++ b/libkonq/konq_popupmenu.cc
@@ -281,7 +281,7 @@ int KonqPopupMenu::insertServices(const ServiceList& list,
TQCString name;
name.setNum( id );
name.prepend( isBuiltin ? "builtinservice_" : "userservice_" );
- KAction * act = new KAction( TQString((*it).m_strName).tqreplace('&',"&&"), 0,
+ KAction * act = new KAction( TQString((*it).m_strName).replace('&',"&&"), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotRunService() ),
&m_ownActions, name );
@@ -339,7 +339,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
bool sMoving = sDeleting;
bool sWriting = sDeleting && m_lstItems.first()->isWritable();
m_sMimeType = m_lstItems.first()->mimetype();
- TQString mimeGroup = m_sMimeType.left(m_sMimeType.tqfind('/'));
+ TQString mimeGroup = m_sMimeType.left(m_sMimeType.find('/'));
mode_t mode = m_lstItems.first()->mode();
bool isDirectory = S_ISDIR(mode);
bool bTrashIncluded = false;
@@ -381,11 +381,11 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
{
m_sMimeType = TQString::null; // mimetypes are different => null
- if ( mimeGroup != (*it)->mimetype().left((*it)->mimetype().tqfind('/')))
+ if ( mimeGroup != (*it)->mimetype().left((*it)->mimetype().find('/')))
mimeGroup = TQString::null; // mimetype groups are different as well!
}
- if ( mimeTypeList.tqfindIndex( (*it)->mimetype() ) == -1 )
+ if ( mimeTypeList.findIndex( (*it)->mimetype() ) == -1 )
mimeTypeList << (*it)->mimetype();
if ( isReallyLocal && !url.isLocalFile() )
@@ -603,7 +603,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
TQString caption;
if (currentDir)
{
- bool httpPage = (m_sViewURL.protocol().tqfind("http", 0, false) == 0);
+ bool httpPage = (m_sViewURL.protocol().find("http", 0, false) == 0);
if (httpPage)
caption = i18n("&Bookmark This Page");
else
@@ -742,7 +742,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
else if ( cfg.hasKey( "X-KDE-Protocols" ) )
{
TQStringList protocols = TQStringList::split( "," , cfg.readEntry( "X-KDE-Protocols" ) );
- if ( !protocols.tqcontains( urlForServiceMenu.protocol() ) )
+ if ( !protocols.contains( urlForServiceMenu.protocol() ) )
continue;
}
else if ( urlForServiceMenu.protocol() == "trash" || urlForServiceMenu.url().startsWith( "system:/trash" ) )
@@ -756,7 +756,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
if ( cfg.hasKey( "X-KDE-Require" ) )
{
const TQStringList capabilities = cfg.readListEntry( "X-KDE-Require" );
- if ( capabilities.tqcontains( "Write" ) && !sWriting )
+ if ( capabilities.contains( "Write" ) && !sWriting )
continue;
}
if ( (cfg.hasKey( "Actions" ) || cfg.hasKey( "X-KDE-GetActionMenu") ) && cfg.hasKey( "ServiceTypes" ) )
@@ -792,7 +792,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
*it == m_sMimeType) ||
(!mimeGroup.isEmpty() &&
((*it).right(1) == "*" &&
- (*it).left((*it).tqfind('/')) == mimeGroup)))
+ (*it).left((*it).find('/')) == mimeGroup)))
{
checkTheMimetypes = true;
}
@@ -802,7 +802,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
ok = true;
for (TQStringList::ConstIterator itex = excludeTypes.begin(); itex != excludeTypes.end(); ++itex)
{
- if( ((*itex).right(1) == "*" && (*itex).left((*itex).tqfind('/')) == mimeGroup) ||
+ if( ((*itex).right(1) == "*" && (*itex).left((*itex).find('/')) == mimeGroup) ||
((*itex) == m_sMimeType) )
{
ok = false;
@@ -883,20 +883,20 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
const TQString onlyShowIn = service->property("OnlyShowIn", TQVariant::String).toString();
if ( !onlyShowIn.isEmpty() ) {
const TQStringList aList = TQStringList::split(';', onlyShowIn);
- if (!aList.tqcontains("KDE"))
+ if (!aList.contains("KDE"))
continue;
}
const TQString notShowIn = service->property("NotShowIn", TQVariant::String).toString();
if ( !notShowIn.isEmpty() ) {
const TQStringList aList = TQStringList::split(';', notShowIn);
- if (aList.tqcontains("KDE"))
+ if (aList.contains("KDE"))
continue;
}
TQCString nam;
nam.setNum( id );
- TQString actionName( (*it)->name().tqreplace("&", "&&") );
+ TQString actionName( (*it)->name().replace("&", "&&") );
if ( menu == m_menuElement ) // no submenu -> prefix single offer
actionName = i18n( "Open with %1" ).arg( actionName );
@@ -1074,10 +1074,10 @@ void KonqPopupMenu::slotPopupAddToBookmark()
void KonqPopupMenu::slotRunService()
{
TQCString senderName = TQT_TQOBJECT_CONST(sender())->name();
- int id = senderName.mid( senderName.tqfind( '_' ) + 1 ).toInt();
+ int id = senderName.mid( senderName.find( '_' ) + 1 ).toInt();
// Is it a usual service (application)
- TQMap<int,KService::Ptr>::Iterator it = m_mapPopup.tqfind( id );
+ TQMap<int,KService::Ptr>::Iterator it = m_mapPopup.find( id );
if ( it != m_mapPopup.end() )
{
KRun::run( **it, m_lstPopupURLs );
@@ -1085,7 +1085,7 @@ void KonqPopupMenu::slotRunService()
}
// Is it a service specific to desktop entry files ?
- TQMap<int,KDEDesktopMimeType::Service>::Iterator it2 = m_mapPopupServices.tqfind( id );
+ TQMap<int,KDEDesktopMimeType::Service>::Iterator it2 = m_mapPopupServices.find( id );
if ( it2 != m_mapPopupServices.end() )
{
KDEDesktopMimeType::executeService( m_lstPopupURLs, it2.data() );