summaryrefslogtreecommitdiffstats
path: root/tests/manual/openglseriestest/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/openglseriestest/mainwindow.cpp')
-rw-r--r--tests/manual/openglseriestest/mainwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/manual/openglseriestest/mainwindow.cpp b/tests/manual/openglseriestest/mainwindow.cpp
index e653e483..8b20c7e8 100644
--- a/tests/manual/openglseriestest/mainwindow.cpp
+++ b/tests/manual/openglseriestest/mainwindow.cpp
@@ -104,6 +104,8 @@ MainWindow::MainWindow(QWidget *parent) :
this, SLOT(colorIndexChanged(int)));
connect(ui->widthComboBox, SIGNAL(currentIndexChanged(int)),
this, SLOT(widthIndexChanged(int)));
+ connect(ui->antiAliasCheckBox, SIGNAL(clicked(bool)),
+ this, SLOT(antiAliasCheckBoxClicked(bool)));
ui->chartView->setChart(m_chart);
ui->chartView->setRenderHint(QPainter::Antialiasing);
@@ -419,6 +421,11 @@ void MainWindow::widthIndexChanged(int index)
}
}
+void MainWindow::antiAliasCheckBoxClicked(bool checked)
+{
+ ui->chartView->setRenderHint(QPainter::Antialiasing, checked);
+}
+
void MainWindow::backgroundIndexChanged(int index)
{
delete m_backgroundBrush;