diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-21 02:35:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-21 02:35:53 +0000 |
commit | 32073e28f0e425c066e65f3fc6a3101feab22598 (patch) | |
tree | 7e78a6f72b314bd555a49597c38ecabfc24a8714 /qtinterface/tqt4/Qt/qlist.h | |
parent | 90cbdd552d7ab58c8534b0f3d0980d5059adc422 (diff) | |
download | tqtinterface-32073e28f0e425c066e65f3fc6a3101feab22598.tar.gz tqtinterface-32073e28f0e425c066e65f3fc6a3101feab22598.zip |
More TQt functionality in place for Qt4...
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1166130 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/tqt4/Qt/qlist.h')
-rw-r--r-- | qtinterface/tqt4/Qt/qlist.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qtinterface/tqt4/Qt/qlist.h b/qtinterface/tqt4/Qt/qlist.h index fb4d3e3..39e44d9 100644 --- a/qtinterface/tqt4/Qt/qlist.h +++ b/qtinterface/tqt4/Qt/qlist.h @@ -261,6 +261,7 @@ public: inline const_iterator end() const { return reinterpret_cast<Node *>(p.end()); } inline const_iterator constEnd() const { return reinterpret_cast<Node *>(p.end()); } iterator insert(iterator before, const T &t); + void insert(iterator pos, int n, const T &x); iterator erase(iterator pos); iterator erase(iterator first, iterator last); @@ -441,6 +442,16 @@ inline typename QList<T>::iterator QList<T>::insert(iterator before, const T &t) } return n; } + +template <typename T> +inline void QList<T>::insert(iterator pos, int n, const T &x) +{ + int q; + for (q=0;q<n;q++) { + this.insert(pos, x); + } +} + template <typename T> inline typename QList<T>::iterator QList<T>::erase(iterator it) { node_destruct(it.i); |