23 setObjectName(
"AdjustingScrollArea");
24 setContentsMargins(0, 0, 0, 0);
25 setWidgetResizable(
true);
26 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
27 setStyleSheet(
"QScrollArea#AdjustingScrollArea {border: 0px; background-color:transparent;}");
32 QScrollArea::setWidget(w);
33 w->installEventFilter(
this);
38 auto horizontal = horizontalScrollBar();
39 QSize result(viewport()->width(), widget()->height() + horizontal->height() * 2);
45 if (obj == widget() && ev->type() != QEvent::Resize) {
46 widget()->setMaximumWidth(viewport()->width());
47 setMaximumHeight(height() - viewport()->height() + widget()->height());
50 return QScrollArea::eventFilter(obj, ev);
materialitems.h Collection of materials to populate MaterialModel.