diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2016-08-17 13:30:12 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2016-08-17 11:32:27 +0000 |
commit | b63e0069a18e9d49a8c961d5fa27325c527507a1 (patch) | |
tree | 2a7740f8747f7caf6fcb525bab5aa90338252983 /tests/manual/openglseriestest/mainwindow.cpp | |
parent | 2d3532204c720e2adaefd30dc18e606fcec98598 (diff) |
Fix antialiasing support of OpenGL accelerated series
OpenGL accelerated series are now antialiased similarly to
non-accelerated series.
Task-number: QTRD-2172
Change-Id: Ie8bc014c82d5fa645cf41ab56bebb99fcf8ad301
Reviewed-by: Mika Salmela <mika.salmela@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'tests/manual/openglseriestest/mainwindow.cpp')
-rw-r--r-- | tests/manual/openglseriestest/mainwindow.cpp | 7 |
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; |