X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fwellarray.cpp;h=1351467a122a7bc8c5bcd36e23ef7fd4192a6638;hp=ad29b039657d8123de5f49c3ba4b2ec76d9559dc;hb=d9ea96280ab1128427143660ae375c30b19aa0cb;hpb=520362f8c4082820193f09e43b27a8c7df2ef011 diff --git a/pv/widgets/wellarray.cpp b/pv/widgets/wellarray.cpp index ad29b039..1351467a 100644 --- a/pv/widgets/wellarray.cpp +++ b/pv/widgets/wellarray.cpp @@ -49,9 +49,9 @@ namespace pv { namespace widgets { -void WellArray::paintEvent(QPaintEvent *e) +void WellArray::paintEvent(QPaintEvent *event) { - QRect r = e->rect(); + QRect r = event->rect(); int cx = r.x(); int cy = r.y(); int ch = r.height(); @@ -163,10 +163,10 @@ void WellArray::paintCellContents(QPainter *p, int row, int col, const QRect &r) } } -void WellArray::mousePressEvent(QMouseEvent *e) +void WellArray::mousePressEvent(QMouseEvent *event) { // The current cell marker is set to the cell the mouse is pressed in - QPoint pos = e->pos(); + QPoint pos = event->pos(); setCurrent(rowAt(pos.y()), columnAt(pos.x())); } @@ -263,9 +263,9 @@ void WellArray::focusOutEvent(QFocusEvent*) /*\reimp */ -void WellArray::keyPressEvent(QKeyEvent* e) +void WellArray::keyPressEvent(QKeyEvent* event) { - switch(e->key()) { // Look at the key code + switch(event->key()) { // Look at the key code case Qt::Key_Left: // If 'left arrow'-key, if (curCol > 0) // and cr't not in leftmost col setCurrent(curRow, curCol - 1); // set cr't to next left column @@ -286,7 +286,7 @@ void WellArray::keyPressEvent(QKeyEvent* e) setSelected(curRow, curCol); break; default: // If not an interesting key, - e->ignore(); // we don't accept the event + event->ignore(); // we don't accept the event return; }