calls_signal_bars.h 682 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "ui/rp_widget.h"
  9. namespace style {
  10. struct CallSignalBars;
  11. } // namespace style
  12. namespace Calls {
  13. class Call;
  14. class SignalBars final : public Ui::RpWidget {
  15. public:
  16. SignalBars(
  17. QWidget *parent,
  18. not_null<Call*> call,
  19. const style::CallSignalBars &st);
  20. private:
  21. void paintEvent(QPaintEvent *e) override;
  22. void changed(int count);
  23. const style::CallSignalBars &_st;
  24. int _count = 0;
  25. };
  26. } // namespace Calls