mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Use internal section stack in Info::WrapWidget.
This commit is contained in:
@@ -59,6 +59,12 @@ public:
|
||||
auto clicks() const {
|
||||
return _clicks.events();
|
||||
}
|
||||
template <typename Handler>
|
||||
void addClickHandler(Handler &&handler) {
|
||||
clicks() | rpl::start_with_next(
|
||||
std::forward<Handler>(handler),
|
||||
lifetime());
|
||||
}
|
||||
|
||||
protected:
|
||||
void enterEventHook(QEvent *e) override;
|
||||
|
Reference in New Issue
Block a user