From d0f25088636702a460c6dd040b929c2b0d9d2ab3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 12 Nov 2019 15:21:06 +0300 Subject: [PATCH] Move box setNoContentMargin() to public interface. --- ui/layers/box_content.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ui/layers/box_content.h b/ui/layers/box_content.h index 6d49519..28426d5 100644 --- a/ui/layers/box_content.h +++ b/ui/layers/box_content.h @@ -184,6 +184,14 @@ public: return _delegate; } + void setNoContentMargin(bool noContentMargin) { + if (_noContentMargin != noContentMargin) { + _noContentMargin = noContentMargin; + setAttribute(Qt::WA_OpaquePaintEvent, !_noContentMargin); + } + getDelegate()->setNoContentMargin(noContentMargin); + } + public slots: void onScrollToY(int top, int bottom = -1); @@ -196,13 +204,6 @@ protected: getDelegate()->setLayerType(layerType); } - void setNoContentMargin(bool noContentMargin) { - if (_noContentMargin != noContentMargin) { - _noContentMargin = noContentMargin; - setAttribute(Qt::WA_OpaquePaintEvent, !_noContentMargin); - } - getDelegate()->setNoContentMargin(noContentMargin); - } void setDimensions( int newWidth, int maxHeight,