summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstringlist.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-06-28 23:19:29 +0200
committerQt by Nokia <qt-info@nokia.com>2011-06-29 15:10:14 +0200
commit7b46ec16017d5b467b2b04e9d7e27ce1cee8659e (patch)
treea4a26bff1329deac642fcd8234d15ffea0519d8e /src/corelib/tools/qstringlist.h
parent28cf5c5356e0591e3d9f31b5df1f69ce9f514ad3 (diff)
remove QT3_SUPPORT from corelib/tools
Change-Id: Ie224cf992be675c7d405d4be05e4acd4157e590e Reviewed-on: http://codereview.qt.nokia.com/863 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Liang Qi <liang.qi@nokia.com>
Diffstat (limited to 'src/corelib/tools/qstringlist.h')
-rw-r--r--src/corelib/tools/qstringlist.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/corelib/tools/qstringlist.h b/src/corelib/tools/qstringlist.h
index 2159512b20..efb7f46c9b 100644
--- a/src/corelib/tools/qstringlist.h
+++ b/src/corelib/tools/qstringlist.h
@@ -48,9 +48,6 @@
#include <QtCore/qregexp.h>
#include <QtCore/qstring.h>
#include <QtCore/qstringmatcher.h>
-#ifdef QT_INCLUDE_COMPAT
-#include <Qt3Support/q3valuelist.h>
-#endif
QT_BEGIN_HEADER
@@ -108,24 +105,6 @@ public:
inline int lastIndexOf(const QString &str, int from = -1) const
{ return QList<QString>::lastIndexOf(str, from); }
#endif
-#ifdef QT3_SUPPORT
- static inline QT3_SUPPORT QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries = false);
- static inline QT3_SUPPORT QStringList split(const QChar &sep, const QString &str, bool allowEmptyEntries = false);
- inline QT3_SUPPORT QStringList grep(const QString &str, bool cs = true) const
- { return filter(str, cs ? Qt::CaseSensitive : Qt::CaseInsensitive); }
-
-#ifndef QT_NO_REGEXP
- static inline QT3_SUPPORT QStringList split(const QRegExp &sep, const QString &str, bool allowEmptyEntries = false);
- inline QT3_SUPPORT QStringList grep(const QRegExp &rx) const { return filter(rx); }
- inline QT3_SUPPORT QStringList &gres(const QRegExp &rx, const QString &after)
- { return replaceInStrings(rx, after); }
-#endif
- inline QT3_SUPPORT QStringList &gres(const QString &before, const QString &after, bool cs = true)
- { return replaceInStrings(before, after, cs ? Qt::CaseSensitive : Qt::CaseInsensitive); }
-
- inline Iterator QT3_SUPPORT fromLast() { return (isEmpty() ? end() : --end()); }
- inline ConstIterator QT3_SUPPORT fromLast() const { return (isEmpty() ? end() : --end()); }
-#endif
};
namespace QtPrivate {
@@ -214,36 +193,6 @@ inline int QStringList::lastIndexOf(QRegExp &rx, int from) const
#endif
-#ifdef QT3_SUPPORT
-inline QStringList QStringList::split(const QChar &sep, const QString &str, bool allowEmptyEntries)
-{
- if (str.isEmpty())
- return QStringList();
- return str.split(sep, allowEmptyEntries ? QString::KeepEmptyParts
- : QString::SkipEmptyParts);
-}
-
-inline QStringList QStringList::split(const QString &sep, const QString &str, bool allowEmptyEntries)
-{
- if (str.isEmpty())
- return QStringList();
- return str.split(sep, allowEmptyEntries ? QString::KeepEmptyParts
- : QString::SkipEmptyParts);
-}
-
-#ifndef QT_NO_REGEXP
-inline QStringList QStringList::split(const QRegExp &sep, const QString &str, bool allowEmptyEntries)
-{
- if (str.isEmpty())
- return QStringList();
- return str.split(sep, allowEmptyEntries ? QString::KeepEmptyParts
- : QString::SkipEmptyParts);
-}
-#endif // QT_NO_REGEXP
-
-#endif // QT3_SUPPORT
-
-
#ifndef QT_NO_DATASTREAM
inline QDataStream &operator>>(QDataStream &in, QStringList &list)
{