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:
@@ -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()));
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user