Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::anonymous_namespace{windowtools.cpp}::ResizeWait Class Reference

One window_resize call waiting for its window to take the new size. More...

Inheritance diagram for Sonde::anonymous_namespace{windowtools.cpp}::ResizeWait:

Public Member Functions

 ResizeWait (ToolCall call, QWindow *window, QObject *object, QSize before, QSize asked, int settleMs)
 Starts waiting; parented to the call's context.

Private Member Functions

void poll ()
 Checks the size; once it is final, waits for layouts and replies.

Private Attributes

ToolCall m_call
 The call to answer.
QPointer< QWindow > m_window
 The window being resized.
QPointer< QObject > m_object
 Its widget or other object, if any.
QSize m_before
 Its size before.
QSize m_asked
 The size asked for.
QSize m_last
 The size at the last poll.
int m_settleMs
 Time to let layouts settle once the size is final.
int m_waited = 0
 Time waited so far.
int m_stable = 0
 How long the size has stayed m_last.
QTimer m_timer
 The poll timer.

Detailed Description

One window_resize call waiting for its window to take the new size.

Polls until the window has the size asked for, or a size that has stayed the same for kResizeStableMs (limits can give another one), or until kResizeWaitMs; then waits settleMs for layouts and replies. Deletes itself.


The documentation for this class was generated from the following file: