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

#include <CustomColorDialogWidgets.h>

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

Signals

void selected (int row, int col)
 
void currentChanged (int row, int col)
 
void colorChanged (int index, QRgb color)
 

Public Member Functions

 QWellArray (int rows, int cols, QWidget *parent=0)
 
 ~QWellArray ()
 
QString cellContent (int row, int col) const
 
int selectedColumn () const
 
int selectedRow () const
 
virtual void setCurrent (int row, int col)
 
virtual void setSelected (int row, int col)
 
virtual QSize minimumSizeHint () const override
 
QSize sizeHint () const override
 
int cellWidth () const
 
int cellHeight () const
 
int rowAt (fltp04 y) const
 
int columnAt (fltp04 x) const
 
int rowY (int row) const
 
int columnX (int column) const
 
int numRows () const
 
int numCols () const
 
QRect cellRect () const
 
QSize gridSize () const
 
QRect cellGeometry (int row, int column)
 
void updateCell (int row, int column)
 

Protected Member Functions

virtual void paintCell (QPainter *, int row, int col, const QRect &)
 
virtual void paintCellContents (QPainter *, int row, int col, const QRect &)
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void keyPressEvent (QKeyEvent *) override
 
void focusInEvent (QFocusEvent *) override
 
void focusOutEvent (QFocusEvent *) override
 
void paintEvent (QPaintEvent *) override
 

Properties

int selectedColumn
 
int selectedRow
 

Constructor & Destructor Documentation

◆ QWellArray()

QWellArray ( int rows,
int cols,
QWidget * parent = 0 )

◆ ~QWellArray()

~QWellArray ( )
inline

Member Function Documentation

◆ cellContent()

QString cellContent ( int row,
int col ) const

◆ cellGeometry()

QRect cellGeometry ( int row,
int column )
inline

◆ cellHeight()

int cellHeight ( ) const
inline

◆ cellRect()

QRect cellRect ( ) const
inline

◆ cellWidth()

int cellWidth ( ) const
inline

◆ colorChanged

void colorChanged ( int index,
QRgb color )
signal

◆ columnAt()

int columnAt ( fltp04 x) const
inline

◆ columnX()

int columnX ( int column) const
inline

◆ currentChanged

void currentChanged ( int row,
int col )
signal

◆ focusInEvent()

void focusInEvent ( QFocusEvent * )
overrideprotected

◆ focusOutEvent()

void focusOutEvent ( QFocusEvent * )
overrideprotected

◆ gridSize()

QSize gridSize ( ) const
inline

◆ keyPressEvent()

void keyPressEvent ( QKeyEvent * e)
overrideprotected

◆ minimumSizeHint()

virtual QSize minimumSizeHint ( ) const
inlineoverridevirtual

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent * e)
overrideprotected

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QMouseEvent * )
overrideprotected

◆ numCols()

int numCols ( ) const
inline

◆ numRows()

int numRows ( ) const
inline

◆ paintCell()

void paintCell ( QPainter * p,
int row,
int col,
const QRect & rect )
protectedvirtual

◆ paintCellContents()

void paintCellContents ( QPainter * p,
int row,
int col,
const QRect & r )
protectedvirtual

Reimplemented in QColorWell.

◆ paintEvent()

void paintEvent ( QPaintEvent * e)
overrideprotected

◆ rowAt()

int rowAt ( fltp04 y) const
inline

◆ rowY()

int rowY ( int row) const
inline

◆ selected

void selected ( int row,
int col )
signal

◆ selectedColumn()

int selectedColumn ( ) const
inline

◆ selectedRow()

int selectedRow ( ) const
inline

◆ setCurrent()

void setCurrent ( int row,
int col )
virtual

◆ setSelected()

void setSelected ( int row,
int col )
virtual

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ updateCell()

void updateCell ( int row,
int column )
inline

Property Documentation

◆ selectedColumn

int selectedColumn
read

◆ selectedRow

int selectedRow
read

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