API Documentation
Loading...
Searching...
No Matches
DropOverlay Class Reference

#include <DropOverlay.h>

Inheritance diagram for DropOverlay:
[legend]
Collaboration diagram for DropOverlay:
[legend]

Public Member Functions

 DropOverlay (QWidget *parent)
 
virtual ~DropOverlay ()
 
void setAreaWidgets (const QHash< DropArea, QWidget * > &widgets)
 
DropArea cursorLocation () const
 
DropArea showDropOverlay (QWidget *target, QWidget *payload)
 
void showDropOverlay (QWidget *target, const QRect &targetAreaRect)
 
void hideDropOverlay ()
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *e) override
 
virtual void showEvent (QShowEvent *e) override
 
virtual void hideEvent (QHideEvent *e) override
 
virtual void resizeEvent (QResizeEvent *e) override
 
virtual void moveEvent (QMoveEvent *e) override
 

Friends

class DropOverlayCross
 

Detailed Description

DropOverlay paints a translucent rectangle over another widget. The geometry of the rectangle is based on the mouse location.

Constructor & Destructor Documentation

◆ DropOverlay()

DropOverlay ( QWidget * parent)

◆ ~DropOverlay()

~DropOverlay ( )
virtual

Member Function Documentation

◆ cursorLocation()

DropArea cursorLocation ( ) const

◆ hideDropOverlay()

void hideDropOverlay ( )

◆ hideEvent()

void hideEvent ( QHideEvent * e)
overrideprotectedvirtual

◆ moveEvent()

void moveEvent ( QMoveEvent * e)
overrideprotectedvirtual

◆ paintEvent()

void paintEvent ( QPaintEvent * e)
overrideprotectedvirtual

◆ resizeEvent()

void resizeEvent ( QResizeEvent * e)
overrideprotectedvirtual

◆ setAreaWidgets()

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

◆ showDropOverlay() [1/2]

void showDropOverlay ( QWidget * target,
const QRect & targetAreaRect )

◆ showDropOverlay() [2/2]

DropArea showDropOverlay ( QWidget * target,
QWidget * payload )

◆ showEvent()

void showEvent ( QShowEvent * e)
overrideprotectedvirtual

Friends And Related Symbol Documentation

◆ DropOverlayCross

friend class DropOverlayCross
friend

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