AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
Loading...
Searching...
No Matches
StatisticsSummaryWidget.h
Go to the documentation of this file.
1//=======================================================================
29//=======================================================================
30
31#ifndef STATISTICSUMMARYWIDGET_H
32#define STATISTICSUMMARYWIDGET_H
33
34#include <QWidget>
35#include <QVBoxLayout>
36#include <QHBoxLayout>
37#include <QLabel>
38
46class StatisticsSummaryWidget : public QWidget
47{
48 Q_OBJECT
49
50public:
56 StatisticsSummaryWidget(QWidget *parent = nullptr);
57
63 void updateAverageTrials(double value);
64
70 void updateAverageResponseTime(double value);
71
77 void updateAverageDuration(double value);
78
84 void updateAverageSuccess(double value);
85
86private:
87 QLabel *averageTrialsLabel;
88 QLabel *averageResponseTimeLabel;
89 QLabel *averageDurationLabel;
90 QLabel *averageSuccessLabel;
91
100 QVBoxLayout *createStatisticBox(const QString &title, QLabel **valueLabel);
101};
102
103#endif // STATISTICSUMMARYWIDGET_H
The StatisticsSummaryWidget class provides a custom QWidget to display various statistical summaries.
Definition: StatisticsSummaryWidget.h:47
void updateAverageResponseTime(double value)
Update the displayed average response time.
Definition: StatisticsSummaryWidget.cpp:98
void updateAverageSuccess(double value)
Update the displayed average success rate.
Definition: StatisticsSummaryWidget.cpp:108
void updateAverageDuration(double value)
Update the displayed average duration.
Definition: StatisticsSummaryWidget.cpp:103
void updateAverageTrials(double value)
Update the displayed average number of trials.
Definition: StatisticsSummaryWidget.cpp:94