From 4c3c7eaa2d225ecc0c16644f1a23e848bf539164 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:12:15 +0000 Subject: Starting work on Qt4 interface... git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1158413 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtinterface/tqstring.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'qtinterface/tqstring.cpp') diff --git a/qtinterface/tqstring.cpp b/qtinterface/tqstring.cpp index 795a1e1..b8a28ef 100644 --- a/qtinterface/tqstring.cpp +++ b/qtinterface/tqstring.cpp @@ -22,4 +22,22 @@ Boston, MA 02110-1301, USA. #define TQ_EXCLUDE_QCSTRING #include -#include \ No newline at end of file +#include + +#ifdef USE_QT4 + +#ifndef QT_NO_REGEXP +int Q3CString::contains( const QRegExp &rx ) const +{ + QString d = QString::fromAscii( data() ); + return d.count( rx ); +} +#endif + +int Q3CString::contains( const char *a ) const +{ + QString d = QString::fromAscii( data() ); + return d.count( a ); +} + +#endif // USE_QT4 \ No newline at end of file -- cgit v1.2.1