Autotest: Use new construction pattern for project panel factory

Change-Id: I09abb1d5dbb07a700053077b03e65a3dce4b3f1f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-11-14 18:00:23 +01:00
parent 8a727b5948
commit f1f4df29b5
3 changed files with 51 additions and 58 deletions

View File

@@ -3,46 +3,8 @@
#pragma once
#include <projectexplorer/projectsettingswidget.h>
namespace Autotest::Internal {
#include <QTimer>
#include <QWidget>
void setupAutotestProjectPanel();
QT_BEGIN_NAMESPACE
class QComboBox;
class QTreeWidget;
class QTreeWidgetItem;
QT_END_NAMESPACE
namespace ProjectExplorer { class Project; }
namespace Autotest {
class ITestFramework;
class ITestTool;
namespace Internal {
class TestProjectSettings;
class ProjectTestSettingsWidget : public ProjectExplorer::ProjectSettingsWidget
{
Q_OBJECT
public:
explicit ProjectTestSettingsWidget(ProjectExplorer::Project *project,
QWidget *parent = nullptr);
private:
void populateFrameworks(const QHash<Autotest::ITestFramework *, bool> &frameworks,
const QHash<Autotest::ITestTool *, bool> &testTools);
void onActiveFrameworkChanged(QTreeWidgetItem *item, int column);
TestProjectSettings *m_projectSettings;
QComboBox *m_useGlobalSettings = nullptr;
QTreeWidget *m_activeFrameworks = nullptr;
QComboBox *m_runAfterBuild = nullptr;
QTimer m_syncTimer;
int m_syncType = 0;
};
} // namespace Internal
} // namespace Autotest
} // Autotest::Internal