diff options
Diffstat (limited to 'kfilereplace/configurationclasses.cpp')
-rw-r--r-- | kfilereplace/configurationclasses.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kfilereplace/configurationclasses.cpp b/kfilereplace/configurationclasses.cpp index 848eafdc..f0c6bcc4 100644 --- a/kfilereplace/configurationclasses.cpp +++ b/kfilereplace/configurationclasses.cpp @@ -84,14 +84,14 @@ RCOptions& RCOptions::operator=(const RCOptions& ci) } //ResultViewEntry Class -ResultViewEntry::ResultViewEntry(QString nkey, QString ndata, bool regexp, bool caseSensitive) +ResultViewEntry::ResultViewEntry(TQString nkey, TQString ndata, bool regexp, bool caseSensitive) { m_caseSensitive = caseSensitive; m_regexp = regexp; if(regexp) { - m_rxKey = QRegExp("("+nkey+")", caseSensitive, false); + m_rxKey = TQRegExp("("+nkey+")", caseSensitive, false); } else { @@ -102,12 +102,12 @@ ResultViewEntry::ResultViewEntry(QString nkey, QString ndata, bool regexp, bool m_pos = 0; } -int ResultViewEntry::lineNumber(const QString& line) const +int ResultViewEntry::lineNumber(const TQString& line) const { return line.mid(0,m_pos).contains('\n')+1; } -int ResultViewEntry::columnNumber(const QString& line) const +int ResultViewEntry::columnNumber(const TQString& line) const { return(m_pos - line.findRev('\n',m_pos)); } @@ -127,7 +127,7 @@ bool ResultViewEntry::regexp()const return m_regexp; } -int ResultViewEntry::pos(const QString& line) +int ResultViewEntry::pos(const TQString& line) { if(m_regexp) m_pos = m_rxKey.search(line,m_pos); @@ -149,9 +149,9 @@ void ResultViewEntry::incPos() } -QString ResultViewEntry::capturedText(const QString& line) +TQString ResultViewEntry::capturedText(const TQString& line) { - QString cap; + TQString cap; if(m_regexp) cap = m_rxKey.cap(1); @@ -161,11 +161,11 @@ QString ResultViewEntry::capturedText(const QString& line) return cap; } -QString ResultViewEntry::message(const QString& capturedText, int x, int y) const +TQString ResultViewEntry::message(const TQString& capturedText, int x, int y) const { - QString data = m_data; - //return i18n(" captured text \"%1\" replaced with \"%2\" at line: %3, column: %4 ").arg(capturedText).arg(data).arg(QString::number(x,10)).arg(QString::number(y,10)); - return i18n(" Line:%3,Col:%4 - \"%1\" -> \"%2\"").arg(capturedText).arg(data).arg(QString::number(x,10)).arg(QString::number(y,10)); + TQString data = m_data; + //return i18n(" captured text \"%1\" replaced with \"%2\" at line: %3, column: %4 ").arg(capturedText).arg(data).arg(TQString::number(x,10)).arg(TQString::number(y,10)); + return i18n(" Line:%3,Col:%4 - \"%1\" -> \"%2\"").arg(capturedText).arg(data).arg(TQString::number(x,10)).arg(TQString::number(y,10)); } int ResultViewEntry::keyLength() const @@ -181,7 +181,7 @@ int ResultViewEntry::dataLength() const return m_data.length(); } -void ResultViewEntry::updateLine(QString& line) +void ResultViewEntry::updateLine(TQString& line) { line.insert(m_pos, m_data); line.remove(m_pos + dataLength(), keyLength()); |