peer_list_dummy.h 668 B

123456789101112131415161718192021222324252627282930
  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. #include "ui/effects/animations.h"
  10. namespace style {
  11. struct PeerList;
  12. } // namespace style
  13. class PeerListDummy final : public Ui::RpWidget {
  14. public:
  15. PeerListDummy(QWidget *parent, int count, const style::PeerList &st);
  16. protected:
  17. void paintEvent(QPaintEvent *e) override;
  18. private:
  19. const style::PeerList &_st;
  20. int _count = 0;
  21. std::vector<Ui::Animations::Simple> _animations;
  22. };