Inherits QGraphicsSceneEvent.
List of all members.
Detailed Description
This event is sent to a MWidget so that it can notify subscribers about changes on its presence on display. The event can be triggered by e.g. panning or switching a MApplicationPage or obscuring the MApplicationWindow with another window. Note that this differs from Qt's explicit hide()/show() semantics. MWidget forwards this event to its children.
Member Enumeration Documentation
Possible visibility states.
- Enumerator:
FullyOnDisplay |
Widget is definitely fully on display
|
FullyOffDisplay |
Widget is definitely fully off display
|
MustBeResolved |
Widget must use viewRect to verify its presence on the display, as well as of all its children.
|
PartiallyOnDisplay |
Widget is partially present on the display, according to its bounding rectangle. Widget may still use viewRect to get a more precise (and therefore more computationally expensive) assertion by comparing it against its shape, for instance.
|
Constructor & Destructor Documentation
MOnDisplayChangeEvent::MOnDisplayChangeEvent |
( |
State |
state, |
|
|
const QRectF & |
viewRect | |
|
) |
| | |
Constructor.
- Parameters:
-
| newState | new visibility state |
| Viewport | rectangle. Used to resolve the visibility if widget may be only partially on the display |
MOnDisplayChangeEvent::MOnDisplayChangeEvent |
( |
bool |
visible, |
|
|
const QRectF & |
viewRect | |
|
) |
| | |
Convenience constructor.
- Parameters:
-
| visible | true : FullyOnDisplay, false : FullyOffDisplay |
| Viewport | rectangle. Used to resolve the visibility if widget may be only partially on the display |
MOnDisplayChangeEvent::~MOnDisplayChangeEvent |
( |
|
) |
[virtual] |
Member Function Documentation
QEvent::Type MOnDisplayChangeEvent::eventNumber |
( |
|
) |
[static] |
QRectF MOnDisplayChangeEvent::viewRect |
( |
|
) |
const |
Return the viewport rectangle.
Member Data Documentation