diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
commit | d7633c195a464e4d344ada9eea61afd10110598a (patch) | |
tree | 1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnqt/stringarray.hpp | |
parent | 3fa7eb804f67b2789f128075cc2522f398640250 (diff) | |
download | tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip |
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/svnqt/stringarray.hpp')
-rw-r--r-- | src/svnqt/stringarray.hpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/svnqt/stringarray.hpp b/src/svnqt/stringarray.hpp index 285f500..3f2c3d5 100644 --- a/src/svnqt/stringarray.hpp +++ b/src/svnqt/stringarray.hpp @@ -24,13 +24,8 @@ #include "svnqt/svnqt_defines.hpp" #include "svnqt/svnqttypes.hpp" -#include <qglobal.h> -#if QT_VERSION < 0x040000 -#include <qstringlist.h> -#else -#include <QtCore> -#include <QStringList> -#endif +#include <tqglobal.h> +#include <tqstringlist.h> // apr api #include "apr_tables.h" @@ -41,18 +36,18 @@ namespace svn class Pool; /** Handle array of const char * in a c++ like way */ - class SVNQT_EXPORT StringArray + class SVNTQT_EXPORT StringArray { protected: - QStringList m_content; + TQStringList m_content; bool m_isNull; public: StringArray(); - StringArray(const QStringList&); + StringArray(const TQStringList&); StringArray(const apr_array_header_t * apr_targets); size_t size()const; - const QString& operator[](size_t which); + const TQString& operator[](size_t which); /** * Returns an apr array containing char*. * @@ -62,7 +57,7 @@ namespace svn /** content of array * @return const reference to data, may used for searches. */ - const QStringList& data() const {return m_content;} + const TQStringList& data() const {return m_content;} /** if array should return 0 instead of empty array */ bool isNull()const; |