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
This commit is contained in:
Collin Kidder
2022-12-25 18:16:01 -05:00
parent bc2b759152
commit 329a5016cc
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -86,6 +86,8 @@ FlowViewWindow::FlowViewWindow(const QVector<CANFrame> *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()));
+3
View File
@@ -56,6 +56,7 @@ FrameInfoWindow::FrameInfoWindow(const QVector<CANFrame> *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<CANFrame> *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<CANFrame> *frames, QWidget *paren
ui->timeHistogram->yAxis->setLabel("Occurrences");
ui->timeHistogram->legend->setVisible(false);
ui->timeHistogram->setBufferDevicePixelRatio(1);
if (useOpenGL)
{