2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use ParticipantsBoxController for members list.

Add search in channel/supergroup members inside PeerListBox.
Also MembersBox is not used anymore.
This commit is contained in:
John Preston
2017-07-10 19:13:40 +03:00
parent b79ddb7a1c
commit 06d4ea2975
8 changed files with 187 additions and 44 deletions

View File

@@ -111,8 +111,9 @@ public:
void setDelegate(BoxContentDelegate *newDelegate) {
_delegate = newDelegate;
_preparing = true;
prepare();
setInnerFocus();
finishPrepare();
}
public slots:
@@ -177,6 +178,8 @@ private slots:
void onDraggingScrollTimer();
private:
void finishPrepare();
void finishScrollCreate();
void setInner(object_ptr<TWidget> inner);
void setInner(object_ptr<TWidget> inner, const style::ScrollArea &st);
void updateScrollAreaGeometry();
@@ -190,6 +193,7 @@ private:
}
BoxContentDelegate *_delegate = nullptr;
bool _preparing = false;
bool _noContentMargin = false;
int _innerTopSkip = 0;
object_ptr<Ui::ScrollArea> _scroll = { nullptr };