about_box.h 801 B

1234567891011121314151617181920212223242526272829303132333435363738
  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/layers/box_content.h"
  9. namespace Ui {
  10. class LinkButton;
  11. class FlatLabel;
  12. } // namespace Ui
  13. class AboutBox : public Ui::BoxContent {
  14. public:
  15. AboutBox(QWidget*);
  16. protected:
  17. void prepare() override;
  18. void resizeEvent(QResizeEvent *e) override;
  19. void keyPressEvent(QKeyEvent *e) override;
  20. private:
  21. void showVersionHistory();
  22. object_ptr<Ui::LinkButton> _version;
  23. object_ptr<Ui::FlatLabel> _text1;
  24. object_ptr<Ui::FlatLabel> _text2;
  25. object_ptr<Ui::FlatLabel> _text3;
  26. };
  27. QString telegramFaqLink();
  28. QString currentVersionText();