tdesktop/Telegram/SourceFiles/boxes/about_box.h

39 lines
801 B
C
Raw Normal View History

/*
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 Ui {
class LinkButton;
class FlatLabel;
} // namespace Ui
2019-09-18 11:19:05 +00:00
class AboutBox : public Ui::BoxContent {
public:
AboutBox(QWidget*);
2015-10-12 21:02:10 +00:00
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> _text1;
object_ptr<Ui::FlatLabel> _text2;
object_ptr<Ui::FlatLabel> _text3;
};
2015-10-12 21:02:10 +00:00
QString telegramFaqLink();
QString currentVersionText();