42 #ifndef PULSEVIEW_PV_WIDGETS_WELLARRAY_HPP 43 #define PULSEVIEW_PV_WIDGETS_WELLARRAY_HPP 59 WellArray(
int rows,
int cols, QWidget* parent =
nullptr);
62 int selectedColumn()
const {
return selCol; }
70 virtual void setCellBrush(
int row,
int col,
const QBrush &);
83 {
if (isRightToLeft())
return ncols - (x /
cellw) - 1;
return x /
cellw; }
85 inline int rowY(
int row)
const 86 {
return cellh * row; }
89 {
if (isRightToLeft())
return cellw * (
ncols - column - 1);
return cellw * column; }
106 if (row >= 0 && row < nrows && column >= 0 && column <
ncols)
117 virtual void paintCell(QPainter *,
int row,
int col,
const QRect&);
144 #endif // PULSEVIEW_PV_WIDGETS_WELLARRAY_HPP
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x(y+z)