mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
41 lines
857 B
C++
41 lines
857 B
C++
/*
|
|
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 "ui/layers/box_content.h"
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
}
|
|
|
|
namespace Ui {
|
|
class LinkButton;
|
|
class FlatLabel;
|
|
} // namespace Ui
|
|
|
|
class AboutBox : public Ui::BoxContent {
|
|
public:
|
|
AboutBox(QWidget*, Window::SessionController* controller);
|
|
|
|
protected:
|
|
void prepare() override;
|
|
|
|
void resizeEvent(QResizeEvent *e) override;
|
|
void keyPressEvent(QKeyEvent *e) override;
|
|
|
|
private:
|
|
void showVersionHistory();
|
|
|
|
object_ptr<Ui::LinkButton> _version;
|
|
object_ptr<Ui::FlatLabel> _text;
|
|
Window::SessionController* _controller;
|
|
|
|
};
|
|
|
|
QString telegramFaqLink();
|
|
QString currentVersionText();
|