NDEVR
API Documentation
DropOverlayCross

Shows a cross with 5 different drop area possibilities. More...

Public Member Functions

 DropOverlayCross (DropOverlay *overlay)
 Constructs the cross overlay for the given DropOverlay parent.
DropArea cursorLocation () const
 Returns the drop area currently under the mouse cursor.
void setAreaWidgets (const QHash< DropArea, QWidget * > &widgets)
 Sets the mapping of drop areas to their corresponding indicator widgets.

Protected Member Functions

virtual void showEvent (QShowEvent *e)
 Handles the show event to position the cross indicator widgets.

Detailed Description

Shows a cross with 5 different drop area possibilities.


Definition at line 120 of file DropOverlay.h.

Constructor & Destructor Documentation

◆ DropOverlayCross()

DropOverlayCross::DropOverlayCross ( DropOverlay * overlay)

Constructs the cross overlay for the given DropOverlay parent.

Parameters
[in]overlayThe parent DropOverlay that owns this cross widget.

References DropOverlayCross().

Referenced by DropOverlayCross().

Member Function Documentation

◆ cursorLocation()

DropArea DropOverlayCross::cursorLocation ( ) const

Returns the drop area currently under the mouse cursor.

Returns
The DropArea beneath the cursor.

◆ setAreaWidgets()

void DropOverlayCross::setAreaWidgets ( const QHash< DropArea, QWidget * > & widgets)

Sets the mapping of drop areas to their corresponding indicator widgets.

Parameters
[in]widgetsA hash mapping DropArea values to their QWidget indicators.

◆ showEvent()

virtual void DropOverlayCross::showEvent ( QShowEvent * e)
protectedvirtual

Handles the show event to position the cross indicator widgets.

Parameters
[in]eThe show event.

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