From 771f7020566a6dce1c81083a69ceaeb57909b25a Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 8 Jun 2020 22:08:09 +0400 Subject: [PATCH] Remove a slot from BoxContent. --- ui/layers/box_content.cpp | 2 +- ui/layers/box_content.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/layers/box_content.cpp b/ui/layers/box_content.cpp index c2b765f..bb6d3e2 100644 --- a/ui/layers/box_content.cpp +++ b/ui/layers/box_content.cpp @@ -101,7 +101,7 @@ void BoxContent::onScrollToY(int top, int bottom) { } } -void BoxContent::onDraggingScrollDelta(int delta) { +void BoxContent::scrollByDraggingDelta(int delta) { _draggingScrollDelta = _scroll ? delta : 0; if (_draggingScrollDelta) { if (!_draggingScrollTimer) { diff --git a/ui/layers/box_content.h b/ui/layers/box_content.h index 28426d5..f293fe4 100644 --- a/ui/layers/box_content.h +++ b/ui/layers/box_content.h @@ -192,11 +192,11 @@ public: getDelegate()->setNoContentMargin(noContentMargin); } + void scrollByDraggingDelta(int delta); + public slots: void onScrollToY(int top, int bottom = -1); - void onDraggingScrollDelta(int delta); - protected: virtual void prepare() = 0;