/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "data/data_statistics.h" #include "statistics/chart_horizontal_lines_data.h" #include "statistics/statistics_common.h" #include "ui/effects/animations.h" #include "ui/rp_widget.h" namespace Statistic { class ChartWidget : public Ui::RpWidget { public: ChartWidget(not_null parent); void setChartData(Data::StatisticalChart chartData); void setHeightLimits(Limits newHeight, bool animated); protected: void paintEvent(QPaintEvent *e) override; private: void measureHeightThreshold(); class Footer; std::unique_ptr