2
0
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:
John Preston
2017-10-03 14:05:58 +01:00
parent 525cde3498
commit 93c15e5ee6
63 changed files with 736 additions and 429 deletions

View File

@@ -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;