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:
@@ -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;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user