mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Move updates handling MainWidget -> Api::Updates.
This commit is contained in:
@@ -55,6 +55,11 @@ class Widget : public Window::AbstractSectionWidget, public RPCSender {
|
||||
public:
|
||||
Widget(QWidget *parent, not_null<Window::SessionController*> controller);
|
||||
|
||||
// When resizing the widget with top edge moved up or down and we
|
||||
// want to add this top movement to the scroll position, so inner
|
||||
// content will not move.
|
||||
void setGeometryWithTopMoved(const QRect &newGeometry, int topDelta);
|
||||
|
||||
void updateDragInScroll(bool inScroll);
|
||||
|
||||
void searchInChat(Key chat);
|
||||
@@ -233,6 +238,8 @@ private:
|
||||
object_ptr<QTimer> _draggingScrollTimer = { nullptr };
|
||||
int _draggingScrollDelta = 0;
|
||||
|
||||
int _topDelta = 0;
|
||||
|
||||
};
|
||||
|
||||
} // namespace Dialogs
|
||||
|
Reference in New Issue
Block a user