2017-09-25 09:02:55 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-09-25 09:02:55 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-09-25 09:02:55 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <rpl/producer.h>
|
|
|
|
|
|
|
|
namespace style {
|
|
|
|
struct FlatLabel;
|
|
|
|
} // namespace style
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class VerticalLayout;
|
2017-11-10 17:51:59 +00:00
|
|
|
class FlatLabel;
|
2017-09-25 09:02:55 +00:00
|
|
|
template <typename Widget>
|
|
|
|
class SlideWrap;
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
namespace Info {
|
|
|
|
namespace Profile {
|
|
|
|
|
2017-11-10 17:51:59 +00:00
|
|
|
struct TextWithLabel {
|
|
|
|
object_ptr<Ui::SlideWrap<Ui::VerticalLayout>> wrap;
|
|
|
|
not_null<Ui::FlatLabel*> text;
|
|
|
|
};
|
|
|
|
|
|
|
|
TextWithLabel CreateTextWithLabel(
|
2017-09-25 09:02:55 +00:00
|
|
|
QWidget *parent,
|
|
|
|
rpl::producer<TextWithEntities> &&label,
|
|
|
|
rpl::producer<TextWithEntities> &&text,
|
|
|
|
const style::FlatLabel &textSt,
|
2017-11-10 17:51:59 +00:00
|
|
|
const style::margins &padding);
|
2017-09-25 09:02:55 +00:00
|
|
|
|
|
|
|
} // namespace Profile
|
|
|
|
} // namespace Info
|