mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-15 10:12:51 +02:00
38 lines
871 B
C++
38 lines
871 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
|
|
*/
|
|
#include "info/boosts/info_boosts_inner_widget.h"
|
|
|
|
namespace Info::Boosts {
|
|
|
|
InnerWidget::InnerWidget(
|
|
QWidget *parent,
|
|
not_null<Controller*> controller,
|
|
not_null<PeerData*> peer)
|
|
: VerticalLayout(parent)
|
|
, _controller(controller)
|
|
, _peer(peer) {
|
|
}
|
|
|
|
rpl::producer<Ui::ScrollToRequest> InnerWidget::scrollToRequests() const {
|
|
return _scrollToRequests.events();
|
|
}
|
|
|
|
auto InnerWidget::showRequests() const -> rpl::producer<ShowRequest> {
|
|
return _showRequests.events();
|
|
}
|
|
|
|
void InnerWidget::showFinished() {
|
|
_showFinished.fire({});
|
|
}
|
|
|
|
not_null<PeerData*> InnerWidget::peer() const {
|
|
return _peer;
|
|
}
|
|
|
|
} // namespace Info::Boosts
|
|
|