diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
commit | f7e71d47719ab6094cf4a9fafffa5ea351973522 (patch) | |
tree | 30834aa632d442019e14f88685001d94657d060b /kutils/kfind.cpp | |
parent | b31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff) | |
download | tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip |
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems
with dependent modules such as kdebase. If it does then it needs to be fixed!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kutils/kfind.cpp')
-rw-r--r-- | kutils/kfind.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kutils/kfind.cpp b/kutils/kfind.cpp index 7b2da6899..d47b1c4a2 100644 --- a/kutils/kfind.cpp +++ b/kutils/kfind.cpp @@ -211,7 +211,7 @@ KDialogBase* KFind::findNextDialog( bool create ) { if ( !m_dialog && create ) { - m_dialog = new KFindNextDialog( m_pattern, parentWidget() ); + m_dialog = new KFindNextDialog( m_pattern, tqparentWidget() ); connect( m_dialog, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT( slotFindNext() ) ); connect( m_dialog, TQT_SIGNAL( finished() ), this, TQT_SLOT( slotDialogClosed() ) ); } @@ -368,7 +368,7 @@ KFind::Result KFind::find() delete d->emptyMatch; d->emptyMatch = new Private::Match( d->currentId, m_index, m_matchedLength ); } else - d->incrementalPath.replace(m_pattern, new Private::Match(d->currentId, m_index, m_matchedLength)); + d->incrementalPath.tqreplace(m_pattern, new Private::Match(d->currentId, m_index, m_matchedLength)); if ( m_pattern.length() < d->matchedPattern.length() ) { @@ -471,7 +471,7 @@ int KFind::find(const TQString &text, const TQString &pattern, int index, long o while (index >= 0) { // ...find the next match. - index = text.findRev(pattern, index, caseSensitive); + index = text.tqfindRev(pattern, index, caseSensitive); if (index == -1) break; @@ -488,7 +488,7 @@ int KFind::find(const TQString &text, const TQString &pattern, int index, long o while (index < (int)text.length()) { // ...find the next match. - index = text.find(pattern, index, caseSensitive); + index = text.tqfind(pattern, index, caseSensitive); if (index == -1) break; @@ -507,11 +507,11 @@ int KFind::find(const TQString &text, const TQString &pattern, int index, long o // Non-whole-word search. if (options & KFindDialog::FindBackwards) { - index = text.findRev(pattern, index, caseSensitive); + index = text.tqfindRev(pattern, index, caseSensitive); } else { - index = text.find(pattern, index, caseSensitive); + index = text.tqfind(pattern, index, caseSensitive); } if (index != -1) { @@ -532,7 +532,7 @@ int KFind::find(const TQString &text, const TQRegExp &pattern, int index, long o while (index >= 0) { // ...find the next match. - index = text.findRev(pattern, index); + index = text.tqfindRev(pattern, index); if (index == -1) break; @@ -551,7 +551,7 @@ int KFind::find(const TQString &text, const TQRegExp &pattern, int index, long o while (index < (int)text.length()) { // ...find the next match. - index = text.find(pattern, index); + index = text.tqfind(pattern, index); if (index == -1) break; @@ -572,11 +572,11 @@ int KFind::find(const TQString &text, const TQRegExp &pattern, int index, long o // Non-whole-word search. if (options & KFindDialog::FindBackwards) { - index = text.findRev(pattern, index); + index = text.tqfindRev(pattern, index); } else { - index = text.find(pattern, index); + index = text.tqfind(pattern, index); } if (index != -1) { @@ -704,7 +704,7 @@ TQWidget* KFind::dialogsParent() const // If the find dialog is still up, it should get the focus when closing a message box // Otherwise, maybe the "find next?" dialog is up // Otherwise, the "view" is the parent. - return d->findDialog ? (TQWidget*)d->findDialog : ( m_dialog ? m_dialog : parentWidget() ); + return d->findDialog ? (TQWidget*)d->findDialog : ( m_dialog ? m_dialog : tqparentWidget() ); } #include "kfind.moc" |