Add openGL mode to flowview, add histogram graphing to frame info

window (also openGL accelerated if you choose)
This commit is contained in:
Collin Kidder
2017-09-03 13:46:02 -04:00
parent 1c638896e4
commit 9f64eabd9f
7 changed files with 79 additions and 11 deletions
+12
View File
@@ -62,6 +62,17 @@ FlowViewWindow::FlowViewWindow(const QVector<CANFrame> *frames, QWidget *parent)
//ui->graphView->xAxis->setTickStep(5.0);
//ui->graphView->xAxis->setSubTickCount(0);
if (openGLMode)
{
ui->graphView->setAntialiasedElements(QCP::aeAll);
ui->graphView->setOpenGl(true);
}
else
{
ui->graphView->setOpenGl(false);
ui->graphView->setAntialiasedElements(QCP::aeNone);
}
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()));
@@ -146,6 +157,7 @@ void FlowViewWindow::readSettings()
}
secondsMode = settings.value("Main/TimeSeconds", false).toBool();
openGLMode = settings.value("Main/UseOpenGL", false).toBool();
}
void FlowViewWindow::writeSettings()