diff options
Diffstat (limited to 'kbabel/kbabeldict/modules/tmx')
-rw-r--r-- | kbabel/kbabeldict/modules/tmx/pwidget.ui | 2 | ||||
-rw-r--r-- | kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp | 14 | ||||
-rw-r--r-- | kbabel/kbabeldict/modules/tmx/tmxcompendium.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/kbabel/kbabeldict/modules/tmx/pwidget.ui b/kbabel/kbabeldict/modules/tmx/pwidget.ui index ab3fd636..9d0d4281 100644 --- a/kbabel/kbabeldict/modules/tmx/pwidget.ui +++ b/kbabel/kbabeldict/modules/tmx/pwidget.ui @@ -209,7 +209,7 @@ <includes> <include location="global" impldecl="in declaration">kseparator.h</include> </includes> -<tqlayoutdefaults spacing="6" margin="11"/> +<layoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kurlrequester.h</includehint> </includehints> diff --git a/kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp b/kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp index f375574c..123935e7 100644 --- a/kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp +++ b/kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp @@ -389,7 +389,7 @@ bool TmxCompendium::startSearch(const TQString& text, uint pluralForm, const Sea if(!found && matchContains && !wholeWords) { - TQString s=tqmaskString(searchStr); + TQString s=maskString(searchStr); TQRegExp searchReg(s); if(searchReg.search(origStr) >= 0) @@ -398,7 +398,7 @@ bool TmxCompendium::startSearch(const TQString& text, uint pluralForm, const Sea if(!found && matchIsContained && !wholeWords) { - TQString s=tqmaskString(origStr); + TQString s=maskString(origStr); TQRegExp reg(s); if(reg.search(searchStr) >= 0) @@ -413,7 +413,7 @@ bool TmxCompendium::startSearch(const TQString& text, uint pluralForm, const Sea for ( TQStringList::Iterator wit2 = list.begin() ; wit2 != list.end(); ++wit2 ) { - TQString s=tqmaskString(*wit2); + TQString s=maskString(*wit2); TQRegExp reg(s); if(reg.search(origStr) >= 0) @@ -454,7 +454,7 @@ bool TmxCompendium::startSearch(const TQString& text, uint pluralForm, const Sea TQRegExp searchReg; if(matchContains) { - TQString s=tqmaskString(searchStr); + TQString s=maskString(searchStr); searchReg.setPattern(s); } @@ -523,7 +523,7 @@ bool TmxCompendium::startSearch(const TQString& text, uint pluralForm, const Sea if(!found && matchIsContained) { - TQString s=tqmaskString(origStr); + TQString s=maskString(origStr); TQRegExp reg(s); if(reg.search(searchStr) >= 0) @@ -538,7 +538,7 @@ bool TmxCompendium::startSearch(const TQString& text, uint pluralForm, const Sea for ( TQStringList::Iterator wit2 = list.begin() ; wit2 != list.end(); ++wit2 ) { - TQString s=tqmaskString(*wit2); + TQString s=maskString(*wit2); if(wholeWords) { @@ -746,7 +746,7 @@ void TmxCompendium::recheckData() loading=false; } -TQString TmxCompendium::tqmaskString(TQString s) const +TQString TmxCompendium::maskString(TQString s) const { s.tqreplace('\\',"\\\\"); s.tqreplace('?',"\\?"); diff --git a/kbabel/kbabeldict/modules/tmx/tmxcompendium.h b/kbabel/kbabeldict/modules/tmx/tmxcompendium.h index e6b76f53..8e96fbd5 100644 --- a/kbabel/kbabeldict/modules/tmx/tmxcompendium.h +++ b/kbabel/kbabeldict/modules/tmx/tmxcompendium.h @@ -97,7 +97,7 @@ protected slots: protected: void loadCompendium(); void addResult(SearchResult *); - TQString tqmaskString(TQString string) const; + TQString maskString(TQString string) const; void registerData(); void unregisterData(); |