QTestSuite.cpp 270 B

1234567891011121314151617181920
  1. #include "QTestSuite.h"
  2. QList<QTestSuite*> QTestSuite::m_suites;
  3. QTestSuite::QTestSuite(QObject *parent) : QObject(parent)
  4. {
  5. m_suites << this;
  6. }
  7. QTestSuite::~QTestSuite()
  8. {
  9. m_suites.removeAll(this);
  10. }
  11. QList<QTestSuite*> QTestSuite::suites()
  12. {
  13. return m_suites;
  14. }