2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Animate child topics list open / close.

This commit is contained in:
John Preston
2022-12-01 17:48:33 +04:00
parent 468d01fc1a
commit 32491ead5e
8 changed files with 224 additions and 58 deletions

View File

@@ -83,9 +83,14 @@ enum class WidgetState {
class InnerWidget final : public Ui::RpWidget {
public:
struct ChildListShown {
PeerId peerId = 0;
float64 shown = 0.;
};
InnerWidget(
QWidget *parent,
not_null<Window::SessionController*> controller);
not_null<Window::SessionController*> controller,
rpl::producer<ChildListShown> childListShown);
void searchReceived(
std::vector<not_null<HistoryItem*>> result,
@@ -490,6 +495,8 @@ private:
rpl::event_stream<QString> _completeHashtagRequests;
rpl::event_stream<> _refreshHashtagsRequests;
rpl::variable<ChildListShown> _childListShown;
base::unique_qptr<Ui::PopupMenu> _menu;
};