71 const QPoint OrigPoint_;
73 const std::function<void (QPoint)> Mover_;
113 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.
std::function< QRect()> RectGetter_f
A function type used to get the rect to fit widget in.
bool eventFilter(QObject *, QEvent *)
Listens for resize events and refits the widget.