aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/qtest/qttestsettings.h
blob: 31394ee60277ee9d36c2de477f4d2251837bdcc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <coreplugin/dialogs/ioptionspage.h>

namespace Autotest::Internal {

enum MetricsType
{
    Walltime,
    TickCounter,
    EventCounter,
    CallGrind,
    Perf
};

class QtTestSettings : public Core::PagedSettings
{
public:
    explicit QtTestSettings(Utils::Id settingsId);

    static QString metricsTypeToOption(const MetricsType type);

    Utils::SelectionAspect metrics{this};
    Utils::BoolAspect noCrashHandler{this};
    Utils::BoolAspect useXMLOutput{this};
    Utils::BoolAspect verboseBench{this};
    Utils::BoolAspect logSignalsSlots{this};
    Utils::BoolAspect limitWarnings{this};
    Utils::IntegerAspect maxWarnings{this};
    Utils::BoolAspect quickCheckForDerivedTests{this};
};

} // Autotest::Internal