2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2019 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2019-08-05 15:47:10 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-04-14 15:51:18 +02:00
|
|
|
#include <projectexplorer/projectsettingswidget.h>
|
|
|
|
|
|
2019-09-05 10:42:01 +02:00
|
|
|
#include <QTimer>
|
2019-08-05 15:47:10 +02:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QComboBox;
|
|
|
|
|
class QTreeWidget;
|
|
|
|
|
class QTreeWidgetItem;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace ProjectExplorer { class Project; }
|
|
|
|
|
|
|
|
|
|
namespace Autotest {
|
2020-03-13 13:54:33 +01:00
|
|
|
|
|
|
|
|
class ITestFramework;
|
2021-01-08 15:53:30 +01:00
|
|
|
class ITestTool;
|
2020-03-13 13:54:33 +01:00
|
|
|
|
2019-08-05 15:47:10 +02:00
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class TestProjectSettings;
|
|
|
|
|
|
2022-04-14 15:51:18 +02:00
|
|
|
class ProjectTestSettingsWidget : public ProjectExplorer::ProjectSettingsWidget
|
2019-08-05 15:47:10 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit ProjectTestSettingsWidget(ProjectExplorer::Project *project,
|
|
|
|
|
QWidget *parent = nullptr);
|
2022-04-14 15:51:18 +02:00
|
|
|
|
2019-08-05 15:47:10 +02:00
|
|
|
private:
|
2021-01-08 15:53:30 +01:00
|
|
|
void populateFrameworks(const QHash<Autotest::ITestFramework *, bool> &frameworks,
|
|
|
|
|
const QHash<Autotest::ITestTool *, bool> &testTools);
|
2019-08-05 15:47:10 +02:00
|
|
|
void onActiveFrameworkChanged(QTreeWidgetItem *item, int column);
|
|
|
|
|
TestProjectSettings *m_projectSettings;
|
|
|
|
|
QComboBox *m_useGlobalSettings = nullptr;
|
|
|
|
|
QTreeWidget *m_activeFrameworks = nullptr;
|
2019-09-13 10:50:32 +02:00
|
|
|
QComboBox *m_runAfterBuild = nullptr;
|
2021-01-08 15:53:30 +01:00
|
|
|
QTimer m_syncTimer;
|
|
|
|
|
int m_syncType = 0;
|
2019-08-05 15:47:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Autotest
|