mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Boxes redesigned. Common groups moved to Shared Media.
Also transparent images sending fixed.
This commit is contained in:
@@ -328,9 +328,10 @@ void MultiSelect::Inner::Item::setOver(bool over) {
|
||||
|
||||
MultiSelect::MultiSelect(QWidget *parent, const style::MultiSelect &st, const QString &placeholder) : TWidget(parent)
|
||||
, _st(st)
|
||||
, _scroll(this, _st.scroll)
|
||||
, _inner(this, st, placeholder, [this](int activeTop, int activeBottom) { scrollTo(activeTop, activeBottom); }) {
|
||||
_scroll->setOwnedWidget(_inner);
|
||||
, _scroll(this, _st.scroll) {
|
||||
_inner = _scroll->setOwnedWidget(object_ptr<Inner>(this, st, placeholder, [this](int activeTop, int activeBottom) {
|
||||
scrollTo(activeTop, activeBottom);
|
||||
}));
|
||||
_scroll->installEventFilter(this);
|
||||
_inner->setResizedCallback([this](int innerHeightDelta) {
|
||||
auto newHeight = resizeGetHeight(width());
|
||||
|
Reference in New Issue
Block a user