summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt4/Qt/qlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqt4/Qt/qlist.h')
-rw-r--r--qtinterface/tqt4/Qt/qlist.h11
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);