📄 mostrecenttests.h
字号:
// //////////////////////////////////////////////////////////////////////////// Header file MostRecentTests.h for class MostRecentTests// (c)Copyright 2000, Baptiste Lepilleur.// Created: 2001/09/20// //////////////////////////////////////////////////////////////////////////#ifndef MOSTRECENTTESTS_H#define MOSTRECENTTESTS_H#include <cppunit/Test.h>#include <qstring.h>#include <qlist.h>#include <qobject.h>/*! \class MostRecentTests * \brief This class represents the list of the recent tests. */class MostRecentTests : public QObject{ Q_OBJECTpublic: /*! Constructs a MostRecentTests object. */ MostRecentTests(); /*! Destructor. */ virtual ~MostRecentTests(); void setTestToRun( CPPUNIT_NS::Test *test ); CPPUNIT_NS::Test *testToRun(); int testCount(); QString testNameAt( int index ); CPPUNIT_NS::Test *testAt( int index );signals: void listChanged(); void testToRunChanged( CPPUNIT_NS::Test *testToRun );public slots: void selectTestToRun( int index );private: /// Prevents the use of the copy constructor. MostRecentTests( const MostRecentTests © ); /// Prevents the use of the copy operator. void operator =( const MostRecentTests © );private: QList<CPPUNIT_NS::Test> m_tests;};// Inlines methods for MostRecentTests:// ------------------------------------#endif // MOSTRECENTTESTS_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -