forked from qt-creator/qt-creator
QmlProfiler: Add test for debug messages model
Change-Id: Ie6872646c09a89a417379a3e1f551526234ab26a Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -29,6 +29,10 @@
|
||||
#include "qmlprofilertool.h"
|
||||
#include "qmlprofilertimelinemodel.h"
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
#include "tests/debugmessagesmodel_test.h"
|
||||
#endif
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
|
||||
@@ -72,5 +76,14 @@ QmlProfilerSettings *QmlProfilerPlugin::globalSettings()
|
||||
return qmlProfilerGlobalSettings();
|
||||
}
|
||||
|
||||
QList<QObject *> QmlProfiler::Internal::QmlProfilerPlugin::createTestObjects() const
|
||||
{
|
||||
QList<QObject *> tests;
|
||||
#ifdef WITH_TESTS
|
||||
tests << new DebugMessagesModelTest;
|
||||
#endif
|
||||
return tests;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlProfiler
|
||||
|
||||
Reference in New Issue
Block a user