68 const QPoint OrigPoint_;
69 QWidget *
const View_;
75 const RectGetter_f Rect_;
95 void Refit (
const QSize&);
UTIL_GUI_API AutoResizeMixin(const QPoint &point, RectGetter_f rect, QWidget *widget)
Constructs the resize mixin.
Automatically moves a widget to fit a rectangle on resize.
bool eventFilter(QObject *, QEvent *)
Listens for resize events and refits the widget.
std::function< QRect()> RectGetter_f
A function type used to get the rect to fit widget in.