diff options
Diffstat (limited to 'src/macro.cpp')
-rw-r--r-- | src/macro.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/macro.cpp b/src/macro.cpp index 4958e6f..a25d4d8 100644 --- a/src/macro.cpp +++ b/src/macro.cpp @@ -17,15 +17,15 @@ * 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 "macro.h" namespace BibTeX { - Macro::Macro( const QString &key ) + Macro::Macro( const TQString &key ) : Element(), m_key( key ), m_value( new Value() ) { // nothing @@ -42,12 +42,12 @@ namespace BibTeX delete m_value; } - void Macro::setKey( const QString &key ) + void Macro::setKey( const TQString &key ) { m_key = key; } - QString Macro::key() const + TQString Macro::key() const { return m_key; } @@ -70,9 +70,9 @@ namespace BibTeX } } - bool Macro::containsPattern( const QString& pattern, EntryField::FieldType fieldType, FilterType filterType, bool caseSensitive ) const + bool Macro::containsPattern( const TQString& pattern, EntryField::FieldType fieldType, FilterType filterType, bool caseSensitive ) const { - QString text = QString( m_key ).append( m_value->simplifiedText() ); + TQString text = TQString( m_key ).append( m_value->simplifiedText() ); if ( filterType == ftExact ) { @@ -82,9 +82,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 ) ) @@ -108,7 +108,7 @@ namespace BibTeX m_value = new Value( other->m_value ); } - QString Macro::text() const + TQString Macro::text() const { return m_key + "=" + m_value->text(); } |