ColorPickerPopup Class Reference

Public Slots

void getColorFromDialog ()
 

Signals

void hid ()
 
void selected (const QColor &)
 

Public Member Functions

QColor color (int index) const
 
 ColorPickerPopup (int width, bool withColorDialog, QWidget *parent=nullptr)
 
void exec ()
 
ColorPickerItemfind (const QColor &col) const
 
void insertColor (const QColor &col, const QString &text, int index)
 
QColor lastSelected () const
 
void setExecFlag ()
 
void setLastSel (const QColor &col)
 
 ~ColorPickerPopup ()
 

Protected Slots

void updateSelected ()
 

Protected Member Functions

void hideEvent (QHideEvent *e)
 
void keyPressEvent (QKeyEvent *e)
 
void mouseReleaseEvent (QMouseEvent *e)
 
void regenerateGrid ()
 
void showEvent (QShowEvent *e)
 

Constructor & Destructor Documentation

◆ ColorPickerPopup()

ColorPickerPopup::ColorPickerPopup ( int  width,
bool  withColorDialog,
QWidget parent = nullptr 
)

◆ ~ColorPickerPopup()

ColorPickerPopup::~ColorPickerPopup ( )

Member Function Documentation

◆ color()

◆ exec()

void ColorPickerPopup::exec ( )

Referenced by QtColorPicker::getColor().

◆ find()

ColorPickerItem * ColorPickerPopup::find ( const QColor &  col) const

◆ getColorFromDialog

void ColorPickerPopup::getColorFromDialog ( )
slot

◆ hid

void ColorPickerPopup::hid ( )
signal

Referenced by hideEvent().

◆ hideEvent()

void ColorPickerPopup::hideEvent ( QHideEvent *  e)
protected

References hid().

◆ insertColor()

void ColorPickerPopup::insertColor ( const QColor &  col,
const QString &  text,
int  index 
)

◆ keyPressEvent()

void ColorPickerPopup::keyPressEvent ( QKeyEvent *  e)
protected

◆ lastSelected()

QColor ColorPickerPopup::lastSelected ( ) const

◆ mouseReleaseEvent()

void ColorPickerPopup::mouseReleaseEvent ( QMouseEvent *  e)
protected

◆ regenerateGrid()

void ColorPickerPopup::regenerateGrid ( )
protected

Referenced by ColorPickerPopup(), and insertColor().

◆ selected

◆ setExecFlag()

void ColorPickerPopup::setExecFlag ( )

◆ setLastSel()

void ColorPickerPopup::setLastSel ( const QColor &  col)

◆ showEvent()

void ColorPickerPopup::showEvent ( QShowEvent *  e)
protected

◆ updateSelected

void ColorPickerPopup::updateSelected ( )
protectedslot

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