summaryrefslogtreecommitdiffstats
path: root/src/comment.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-06-29 12:56:53 +0200
committerSlávek Banko <[email protected]>2013-07-04 03:11:35 +0200
commit5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch)
treec8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/comment.cpp
parent251c9a439759c830d34c70683d0fc9454d703010 (diff)
downloadkbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz
kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip
Initial TQt conversion
Diffstat (limited to 'src/comment.cpp')
-rw-r--r--src/comment.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/comment.cpp b/src/comment.cpp
index dcf0a58..3d2e5c1 100644
--- a/src/comment.cpp
+++ b/src/comment.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 <comment.h>
#include <xsltransform.h>
@@ -26,7 +26,7 @@
namespace BibTeX
{
- Comment::Comment( const QString& text, bool useCommand ) : Element(), m_text( text ), m_useCommand( useCommand )
+ Comment::Comment( const TQString& text, bool useCommand ) : Element(), m_text( text ), m_useCommand( useCommand )
{
// nothing
}
@@ -42,12 +42,12 @@ namespace BibTeX
// nothing
}
- QString Comment::text() const
+ TQString Comment::text() const
{
return m_text;
}
- void Comment::setText( const QString &text )
+ void Comment::setText( const TQString &text )
{
m_text = text;
}
@@ -62,7 +62,7 @@ namespace BibTeX
m_useCommand = useCommand;
}
- bool Comment::containsPattern( const QString& pattern, EntryField::FieldType fieldType, FilterType filterType, bool caseSensitive ) const
+ bool Comment::containsPattern( const TQString& pattern, EntryField::FieldType fieldType, FilterType filterType, bool caseSensitive ) const
{
if ( filterType == ftExact )
{
@@ -72,9 +72,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 && m_text.contains( *it, caseSensitive ) )