Move box setNoContentMargin() to public interface.

This commit is contained in:
John Preston 2019-11-12 15:21:06 +03:00
parent 5851950296
commit d0f2508863

View file

@ -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,