FlightGear next
|
The GettingStartedTipsController::ItemPositionObserver class. More...
Inherits QObject.
Signals | |
void | itemPositionChanged () |
void | itemNotMoving () |
Public Member Functions | |
ItemPositionObserver (QObject *pr) | |
void | setObservedItem (QQuickItem *obs) |
bool | hasRecentlyMoved () const |
The GettingStartedTipsController::ItemPositionObserver class.
This is a helper to observe the full position (and in the future, transform if required) of a QQuickItem, so we can update a signal when the on-screen position changes. This is necessary to re-transform the tooltip location if the item it's 'attached' to moves, or some ancestor does.
At present this does not handle arbitrary scaling or rotation, but observing those signals would also be possible.
Definition at line 61 of file GettingStartedTipsController.cxx.
|
inline |
Definition at line 65 of file GettingStartedTipsController.cxx.
|
inline |
Definition at line 96 of file GettingStartedTipsController.cxx.
|
signal |
|
signal |
|
inline |
Definition at line 79 of file GettingStartedTipsController.cxx.