Added access to height of multi select from peer list box.

This commit is contained in:
23rd 2024-10-31 06:50:01 +03:00
parent 8fd9ae4e59
commit 76b1288f77
2 changed files with 5 additions and 0 deletions

View file

@ -543,6 +543,10 @@ auto PeerListBox::collectSelectedRows()
return result;
}
rpl::producer<int> PeerListBox::multiSelectHeightValue() const {
return _select ? _select->heightValue() : rpl::single(0);
}
PeerListRow::PeerListRow(not_null<PeerData*> peer)
: PeerListRow(peer, peer->id.value) {
}

View file

@ -1102,6 +1102,7 @@ public:
[[nodiscard]] std::vector<PeerListRowId> collectSelectedIds();
[[nodiscard]] std::vector<not_null<PeerData*>> collectSelectedRows();
[[nodiscard]] rpl::producer<int> multiSelectHeightValue() const;
void peerListSetTitle(rpl::producer<QString> title) override {
setTitle(std::move(title));