window: Extend API documentation

Signed-off-by: Victoria Fischer <victoria.fischer@mercedes-benz.com>
This commit is contained in:
Aleix Pol Gonzalez 2024-05-24 16:37:51 +02:00 committed by Vlad Zahorodnii
parent c2d28d5b96
commit 912d339489

View file

@ -679,9 +679,21 @@ public:
virtual QSizeF constrainClientSize(const QSizeF &size, SizeMode mode = SizeModeAny) const; virtual QSizeF constrainClientSize(const QSizeF &size, SizeMode mode = SizeModeAny) const;
QSizeF constrainFrameSize(const QSizeF &size, SizeMode mode = SizeModeAny) const; QSizeF constrainFrameSize(const QSizeF &size, SizeMode mode = SizeModeAny) const;
void move(const QPointF &point); /**
* Moves the window so that the new topLeft corner of the frame is @p topLeft.
*/
void move(const QPointF &topLeft);
/**
* Resizes the window to have a new @p size but stay with the top-left corner in the same position.
*/
void resize(const QSizeF &size); void resize(const QSizeF &size);
void moveResize(const QRectF &rect);
/**
* Requests a new @p geometry for the window that the implementation will need to adopt
* within its possibilities.
*/
void moveResize(const QRectF &geometry);
void growHorizontal(); void growHorizontal();
void shrinkHorizontal(); void shrinkHorizontal();