summaryrefslogtreecommitdiffstats
path: root/kttsd/kcmkttsmgr
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
commita53c68f02a359d234dee62dfa3bdd12bb17b13b5 (patch)
tree5a800b73c31a1a1251ab533dc614b521f1378ce3 /kttsd/kcmkttsmgr
parent389971def351e67fcf01c3dbe6b83c4d721dd755 (diff)
downloadtdeaccessibility-a53c68f02a359d234dee62dfa3bdd12bb17b13b5.tar.gz
tdeaccessibility-a53c68f02a359d234dee62dfa3bdd12bb17b13b5.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kttsd/kcmkttsmgr')
-rw-r--r--kttsd/kcmkttsmgr/addtalker.cpp4
-rw-r--r--kttsd/kcmkttsmgr/kcmkttsmgr.cpp22
-rw-r--r--kttsd/kcmkttsmgr/selectevent.cpp6
3 files changed, 16 insertions, 16 deletions
diff --git a/kttsd/kcmkttsmgr/addtalker.cpp b/kttsd/kcmkttsmgr/addtalker.cpp
index 5732372..f97e263 100644
--- a/kttsd/kcmkttsmgr/addtalker.cpp
+++ b/kttsd/kcmkttsmgr/addtalker.cpp
@@ -46,7 +46,7 @@ AddTalker::AddTalker(SynthToLangMap synthToLangMap, TQWidget* tqparent, const ch
// Default to user's desktop language.
TQString languageCode = KGlobal::locale()->defaultLanguage();
// If there is not a synth that supports the locale, try stripping country code.
- if (!m_langToSynthMap.tqcontains(languageCode))
+ if (!m_langToSynthMap.contains(languageCode))
{
TQString countryCode;
TQString charSet;
@@ -55,7 +55,7 @@ AddTalker::AddTalker(SynthToLangMap synthToLangMap, TQWidget* tqparent, const ch
languageCode = twoAlpha;
}
// If there is still not a synth that supports the language code, default to "other".
- if (!m_langToSynthMap.tqcontains(languageCode)) languageCode = "other";
+ if (!m_langToSynthMap.contains(languageCode)) languageCode = "other";
// Select the language in the language combobox.
TQString language = languageCodeToLanguage(languageCode);
diff --git a/kttsd/kcmkttsmgr/kcmkttsmgr.cpp b/kttsd/kcmkttsmgr/kcmkttsmgr.cpp
index f4d2bbe..e60a720 100644
--- a/kttsd/kcmkttsmgr/kcmkttsmgr.cpp
+++ b/kttsd/kcmkttsmgr/kcmkttsmgr.cpp
@@ -430,7 +430,7 @@ void KCMKttsMgr::load()
loadNotifyEventsFromFile( locateLocal("config", "kttsd_notifyevents.xml"), true );
slotNotifyEnableCheckBox_toggled( m_kttsmgrw->notifyEnableCheckBox->isChecked() );
// Auto-expand and position on the Default item.
- TQListViewItem* item = m_kttsmgrw->notifyListView->tqfindItem( "default", nlvcEventSrc );
+ TQListViewItem* item = m_kttsmgrw->notifyListView->findItem( "default", nlvcEventSrc );
if ( item )
if ( item->childCount() > 0 ) item = item->firstChild();
if ( item ) m_kttsmgrw->notifyListView->ensureItemVisible( item );
@@ -542,7 +542,7 @@ void KCMKttsMgr::load()
// All plugins support "Other".
// TODO: Eventually, this should not be necessary, since all plugins will know
// the languages they support and report them in call to getSupportedLanguages().
- if (!languageCodes.tqcontains("other")) languageCodes.append("other");
+ if (!languageCodes.contains("other")) languageCodes.append("other");
// Add supported language codes to synthesizer-to-language map.
m_synthToLangMap[synthName] = languageCodes;
@@ -822,7 +822,7 @@ void KCMKttsMgr::save()
if (groupName.left(7) == "Talker_")
{
TQString groupTalkerID = groupName.mid(7);
- if (!talkerIDsList.tqcontains(groupTalkerID)) m_config->deleteGroup(groupName);
+ if (!talkerIDsList.contains(groupTalkerID)) m_config->deleteGroup(groupName);
}
}
@@ -862,7 +862,7 @@ void KCMKttsMgr::save()
if (groupName.left(7) == "Filter_")
{
TQString groupFilterID = groupName.mid(7);
- if (!filterIDsList.tqcontains(groupFilterID)) m_config->deleteGroup(groupName);
+ if (!filterIDsList.contains(groupFilterID)) m_config->deleteGroup(groupName);
}
}
@@ -1400,7 +1400,7 @@ void KCMKttsMgr::addFilter( bool sbd)
{
if (item->text(flvcMultiInstance) == "T")
{
- if (!filterPlugInNames.tqcontains(item->text(flvcPlugInName)))
+ if (!filterPlugInNames.contains(item->text(flvcPlugInName)))
filterPlugInNames.append(item->text(flvcPlugInName));
}
item = item->nextSibling();
@@ -2482,9 +2482,9 @@ void KCMKttsMgr::slotNotifyTestButton_clicked()
break;
case NotifyAction::SpeakCustom:
msg = m_kttsmgrw->notifyMsgLineEdit->text();
- msg.tqreplace("%a", i18n("sample application"));
- msg.tqreplace("%e", i18n("sample event"));
- msg.tqreplace("%m", i18n("sample notification message"));
+ msg.replace("%a", i18n("sample application"));
+ msg.replace("%e", i18n("sample event"));
+ msg.replace("%m", i18n("sample notification message"));
break;
}
if (!msg.isEmpty()) sayMessage(msg, item->text(nlvcTalker));
@@ -2543,7 +2543,7 @@ TQListViewItem* KCMKttsMgr::addNotifyItem(
TQString talkerName = talkerCode.getTranslatedDescription();
if (!eventSrcName.isEmpty() && !eventName.isEmpty() && !actionName.isEmpty() && !talkerName.isEmpty())
{
- TQListViewItem* parentItem = lv->tqfindItem(eventSrcName, nlvcEventSrcName);
+ TQListViewItem* parentItem = lv->findItem(eventSrcName, nlvcEventSrcName);
if (!parentItem)
{
item = lv->lastItem();
@@ -2557,7 +2557,7 @@ TQListViewItem* KCMKttsMgr::addNotifyItem(
parentItem->setPixmap( nlvcEventSrcName, SmallIcon( iconName ) );
}
// No duplicates.
- item = lv->tqfindItem( event, nlvcEvent );
+ item = lv->findItem( event, nlvcEvent );
if ( !item || item->tqparent() != parentItem )
item = new KListViewItem(parentItem, eventName, actionDisplayName, talkerName,
eventSrc, event, actionName, talkerCode.getTalkerCode());
@@ -2599,7 +2599,7 @@ void KCMKttsMgr::slotNotifyAddButton_clicked()
int action = NotifyAction::DoNotSpeak;
TQString msg;
TalkerCode talkerCode;
- item = lv->tqfindItem( "default", nlvcEventSrc );
+ item = lv->findItem( "default", nlvcEventSrc );
if ( item )
{
if ( item->childCount() > 0 ) item = item->firstChild();
diff --git a/kttsd/kcmkttsmgr/selectevent.cpp b/kttsd/kcmkttsmgr/selectevent.cpp
index 55a78d7..921d296 100644
--- a/kttsd/kcmkttsmgr/selectevent.cpp
+++ b/kttsd/kcmkttsmgr/selectevent.cpp
@@ -67,7 +67,7 @@ SelectEvent::SelectEvent(TQWidget* tqparent, const char* name, WFlags fl, const
TQString description = config->readEntry( TQString::tqfromLatin1("Comment"),
i18n("No description available") );
delete config;
- int index = relativePath.tqfind( '/' );
+ int index = relativePath.find( '/' );
TQString appname;
if ( index >= 0 )
appname = relativePath.left( index );
@@ -136,8 +136,8 @@ TQString SelectEvent::getEvent()
// "/opt/kde3/share/apps/kwin/eventsrc"
TQString SelectEvent::makeRelative( const TQString& fullPath )
{
- int slash = fullPath.tqfindRev( '/' ) - 1;
- slash = fullPath.tqfindRev( '/', slash );
+ int slash = fullPath.findRev( '/' ) - 1;
+ slash = fullPath.findRev( '/', slash );
if ( slash < 0 )
return TQString();