From 329a5016cced041e1b2cf6d2842a957c4b588880 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Sun, 25 Dec 2022 18:16:01 -0500 Subject: [PATCH] Add graph fixes to flowview and frame info windows Prev commit fixed graphing window but these other two had the same problem on hiDPI screens --- re/flowviewwindow.cpp | 2 ++ re/frameinfowindow.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/re/flowviewwindow.cpp b/re/flowviewwindow.cpp index d1e2fdf..5e79c67 100644 --- a/re/flowviewwindow.cpp +++ b/re/flowviewwindow.cpp @@ -86,6 +86,8 @@ FlowViewWindow::FlowViewWindow(const QVector *frames, QWidget *parent) ui->graphView->setAntialiasedElements(QCP::aeNone); } + ui->graphView->setBufferDevicePixelRatio(1); + connect(ui->btnBackOne, SIGNAL(clicked(bool)), this, SLOT(btnBackOneClick())); connect(ui->btnPause, SIGNAL(clicked(bool)), this, SLOT(btnPauseClick())); connect(ui->btnReverse, SIGNAL(clicked(bool)), this, SLOT(btnReverseClick())); diff --git a/re/frameinfowindow.cpp b/re/frameinfowindow.cpp index b545b50..e1b5de7 100644 --- a/re/frameinfowindow.cpp +++ b/re/frameinfowindow.cpp @@ -56,6 +56,7 @@ FrameInfoWindow::FrameInfoWindow(const QVector *frames, QWidget *paren ui->graphHistogram->yAxis->setNumberPrecision(0); //log ticker always picks powers of 10 so no need or use for precision ui->graphHistogram->axisRect()->setupFullAxesBox(); + ui->graphHistogram->setBufferDevicePixelRatio(1); ui->graphHistogram->xAxis->setLabel("Bits"); ui->graphHistogram->yAxis->setLabel("Instances"); @@ -79,6 +80,7 @@ FrameInfoWindow::FrameInfoWindow(const QVector *frames, QWidget *paren else ui->graphBytes->yAxis->setLabel("Value (Dec)"); ui->graphBytes->legend->setVisible(false); + ui->graphBytes->setBufferDevicePixelRatio(1); ui->timeHistogram->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom | QCP::iSelectAxes | QCP::iSelectLegend | QCP::iSelectPlottables); @@ -97,6 +99,7 @@ FrameInfoWindow::FrameInfoWindow(const QVector *frames, QWidget *paren ui->timeHistogram->yAxis->setLabel("Occurrences"); ui->timeHistogram->legend->setVisible(false); + ui->timeHistogram->setBufferDevicePixelRatio(1); if (useOpenGL) {