90 void Refit (
const QSize&);
Automatically moves a widget to fit a rectangle on resize.
std::function< QRect()> RectGetter_f
A function type used to get the rect to fit widget in.
UTIL_GUI_API AutoResizeMixin(const QPoint &point, RectGetter_f rect, QWidget *widget)
Constructs the resize mixin.
bool eventFilter(QObject *, QEvent *) override
Listens for resize events and refits the widget.
Container< T > Filter(const Container< T > &c, F f)