mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-12 02:43:41 +08:00
ed3b6bd90c
* faster startup * faster * cleanup Co-authored-by: Comma Device <device@comma.ai>
20 lines
303 B
C++
20 lines
303 B
C++
#pragma once
|
|
|
|
#include <QLabel>
|
|
|
|
class DriveStats : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DriveStats(QWidget* parent = 0);
|
|
|
|
private:
|
|
bool metric;
|
|
struct StatsLabels {
|
|
QLabel *routes, *distance, *hours;
|
|
} all_, week_;
|
|
|
|
private slots:
|
|
void parseResponse(const QString &response);
|
|
};
|