diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | d8762de95349dc6edaa34db9bf699b367c1af6b1 (patch) | |
tree | 8c76a6ab8e4e92d13196cb11ddab2d0fb64ec680 /keduca | |
parent | 03458c4e2ca2e92deafe078d0e09e1acd4c4765f (diff) | |
download | tdeedu-d8762de95349dc6edaa34db9bf699b367c1af6b1.tar.gz tdeedu-d8762de95349dc6edaa34db9bf699b367c1af6b1.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'keduca')
-rw-r--r-- | keduca/keduca/kgroupeduca.cpp | 6 | ||||
-rw-r--r-- | keduca/keducabuilder/kcontrolheader.cpp | 8 | ||||
-rw-r--r-- | keduca/keducabuilder/ktagcombobox.cpp | 8 | ||||
-rw-r--r-- | keduca/libkeduca/fileread.cpp | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/keduca/keduca/kgroupeduca.cpp b/keduca/keduca/kgroupeduca.cpp index 958134e2..6482f3e2 100644 --- a/keduca/keduca/kgroupeduca.cpp +++ b/keduca/keduca/kgroupeduca.cpp @@ -73,7 +73,7 @@ void KGroupEduca::clearAnswers() for( unsigned int i=0 ; i<maxButton ; ++i ) { TQButton *tmpButton; - if( (tmpButton = tqfind(i)) ) + if( (tmpButton = find(i)) ) remove(tmpButton); delete tmpButton; } @@ -87,13 +87,13 @@ bool KGroupEduca::isChecked(int id) { case Radio: { - KRadioEduca *tmpRadioButton = (KRadioEduca*) tqfind(id); + KRadioEduca *tmpRadioButton = (KRadioEduca*) find(id); if(tmpRadioButton != 0) return tmpRadioButton->isChecked(); } break; case Check: { - KCheckEduca *tmpCheckButton = (KCheckEduca*) tqfind(id); + KCheckEduca *tmpCheckButton = (KCheckEduca*) find(id); if(tmpCheckButton != 0) return tmpCheckButton->isChecked(); } break; diff --git a/keduca/keducabuilder/kcontrolheader.cpp b/keduca/keducabuilder/kcontrolheader.cpp index 4c1081a2..7f20e321 100644 --- a/keduca/keducabuilder/kcontrolheader.cpp +++ b/keduca/keducabuilder/kcontrolheader.cpp @@ -261,10 +261,10 @@ void KControlHeader::loadCountryList(KLanguageCombo *combo) TQString tag = *it; int index; - index = tag.tqfindRev('/'); + index = tag.findRev('/'); if (index != -1) tag = tag.mid(index + 1); - index = tag.tqfindRev('.'); + index = tag.findRev('.'); if (index != -1) tag.truncate(index); KSimpleConfig entry(*it); @@ -287,9 +287,9 @@ void KControlHeader::loadCountryList(KLanguageCombo *combo) TQString submenu = '-' + entry.readEntry(TQString::tqfromLatin1("Region")); TQString tag = *it; - int index = tag.tqfindRev('/'); + int index = tag.findRev('/'); tag.truncate(index); - index = tag.tqfindRev('/'); + index = tag.findRev('/'); tag = tag.mid(index+1); combo->insertLanguage(tag, name, sub, submenu); } diff --git a/keduca/keducabuilder/ktagcombobox.cpp b/keduca/keducabuilder/ktagcombobox.cpp index f89f14df..0a801f94 100644 --- a/keduca/keducabuilder/ktagcombobox.cpp +++ b/keduca/keducabuilder/ktagcombobox.cpp @@ -105,12 +105,12 @@ int KTagComboBox::count() const static inline TQPopupMenu *checkInsertIndex(TQPopupMenu *popup, const TQStringList *tags, const TQString &submenu, int *index) { - int pos = tags->tqfindIndex(submenu); + int pos = tags->findIndex(submenu); TQPopupMenu *pi = 0; if (pos != -1) { - TQMenuItem *p = popup->tqfindItem(popup->idAt(pos)); + TQMenuItem *p = popup->findItem(popup->idAt(pos)); pi = p?p->popup():0; } if (!pi) pi = popup; @@ -183,7 +183,7 @@ void KTagComboBox::paintEvent( TQPaintEvent * ev) bool KTagComboBox::containsTag( const TQString &str ) const { - return _tags->tqcontains(str) > 0; + return _tags->contains(str) > 0; } TQString KTagComboBox::currentTag() const @@ -215,7 +215,7 @@ void KTagComboBox::setCurrentItem(int i) void KTagComboBox::setCurrentItem(const TQString &code) { - int i = _tags->tqfindIndex(code); + int i = _tags->findIndex(code); if (code.isNull()) i = 0; if (i != -1) diff --git a/keduca/libkeduca/fileread.cpp b/keduca/libkeduca/fileread.cpp index 1fb03518..b7aaab9d 100644 --- a/keduca/libkeduca/fileread.cpp +++ b/keduca/libkeduca/fileread.cpp @@ -905,7 +905,7 @@ void FileRead::setHeader( const TQString field, const TQString value) if( (_header[field]).isEmpty() ) _header.insert( field, value ); else - _header.tqreplace( field, value ); + _header.replace( field, value ); } /** is Multi Answer */ |