summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/qtestevent.h')
-rw-r--r--src/testlib/qtestevent.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testlib/qtestevent.h b/src/testlib/qtestevent.h
index 80745ed9bf..8f092cf8c9 100644
--- a/src/testlib/qtestevent.h
+++ b/src/testlib/qtestevent.h
@@ -132,7 +132,7 @@ class QTestEventList: public QList<QTestEvent *>
public:
inline QTestEventList() {}
inline QTestEventList(const QTestEventList &other): QList<QTestEvent *>()
- { for (int i = 0; i < other.count(); ++i) append(other.at(i)->clone()); }
+ { for (int i = 0; i < other.size(); ++i) append(other.at(i)->clone()); }
inline ~QTestEventList()
{ clear(); }
inline void clear()
@@ -182,7 +182,7 @@ public:
#ifdef QT_WIDGETS_LIB
inline void simulate(QWidget *w)
{
- for (int i = 0; i < count(); ++i)
+ for (int i = 0; i < size(); ++i)
at(i)->simulate(w);
}
#endif