diff options
author | Slávek Banko <[email protected]> | 2013-06-29 12:56:53 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-04 03:11:35 +0200 |
commit | 5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch) | |
tree | c8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/preamble.cpp | |
parent | 251c9a439759c830d34c70683d0fc9454d703010 (diff) | |
download | kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip |
Initial TQt conversion
Diffstat (limited to 'src/preamble.cpp')
-rw-r--r-- | src/preamble.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/preamble.cpp b/src/preamble.cpp index 1b03a0f..3df04f8 100644 --- a/src/preamble.cpp +++ b/src/preamble.cpp @@ -17,8 +17,8 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include <qregexp.h> -#include <qstringlist.h> +#include <ntqregexp.h> +#include <ntqstringlist.h> #include "preamble.h" @@ -30,7 +30,7 @@ namespace BibTeX // TODO } - Preamble::Preamble( const QString& text ) : Element() + Preamble::Preamble( const TQString& text ) : Element() { m_value = new Value( text, false ); } @@ -63,9 +63,9 @@ namespace BibTeX } } - bool Preamble::containsPattern( const QString& pattern, EntryField::FieldType fieldType, FilterType filterType, bool caseSensitive ) const + bool Preamble::containsPattern( const TQString& pattern, EntryField::FieldType fieldType, FilterType filterType, bool caseSensitive ) const { - QString text = m_value->simplifiedText(); + TQString text = m_value->simplifiedText(); if ( filterType == ftExact ) { @@ -75,9 +75,9 @@ namespace BibTeX else { /** for each word in the search pattern ... */ - QStringList words = QStringList::split( QRegExp( "\\s+" ), pattern ); + TQStringList words = TQStringList::split( TQRegExp( "\\s+" ), pattern ); unsigned int hits = 0; - for ( QStringList::Iterator it = words.begin(); it != words.end(); ++it ) + for ( TQStringList::Iterator it = words.begin(); it != words.end(); ++it ) { /** check if word is contained in text */ if ( fieldType == EntryField::ftUnknown && text.contains( *it, caseSensitive ) ) @@ -100,7 +100,7 @@ namespace BibTeX m_value = new Value( other->m_value ); } - QString Preamble::text() const + TQString Preamble::text() const { return "Preamble: " + m_value->text(); } |