Skip to content

Commit

Permalink
Overview table clickthru fix for single row
Browse files Browse the repository at this point in the history
.. need to highlight first row of table when only a
   single row for click thru. Since values are shown in
   rows not columns.
  • Loading branch information
liversedge committed Aug 4, 2021
1 parent d41e7dd commit 534a6a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Charts/OverviewItems.cpp
Expand Up @@ -2431,6 +2431,9 @@ DataOverviewItem::itemPaint(QPainter *painter, const QStyleOptionGraphicsItem *,
QRectF dataarea = paintarea;
dataarea.setY(dataarea.y() + (lineheight*2) + (lineheight*0.25f)); // 0.2 is the line spacing

// single row just highlight the first data point
if (!multirow) dataarea.setY(dataarea.y() - (lineheight*2));

// set value based upon the location of the mouse
QPoint vpos = parent->view->mapFromGlobal(QCursor::pos());
QPointF pos = parent->view->mapToScene(vpos);
Expand Down

2 comments on commit 534a6a4

@PonessM
Copy link

@PonessM PonessM commented on 534a6a4 Aug 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

the clickthru works good.
But when you click thru, the perspective DropDown is visual not reloaded. It shows the Trend View Items, but link correct to the analysis Items.

Thanks for your awesome work

@liversedge
Copy link
Member Author

@liversedge liversedge commented on 534a6a4 Aug 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot ! Will fix.
See #3997

Please sign in to comment.