diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-01-09 12:47:06 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-01-09 13:19:32 +0200 |
commit | 2203491ab2b639f3def805ea9cecbab1add32105 (patch) | |
tree | e2a8b2ac81638f608d70071d028b021274be298e /tests | |
parent | 450dc3e6d74ffe93a761a5e2491458935ecac7b7 (diff) |
Enable using custom surface format for c++ graphs
Main benefit is to be able to opt out of antialiasing.
Task-number: QTRD-2734
Change-Id: Ic0681356f93d55e87535910a533be3f845703044
Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/barstest/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/barstest/main.cpp b/tests/barstest/main.cpp index e18aaed1..9147735e 100644 --- a/tests/barstest/main.cpp +++ b/tests/barstest/main.cpp @@ -42,7 +42,14 @@ int main(int argc, char **argv) QVBoxLayout *vLayout = new QVBoxLayout(); QVBoxLayout *vLayout2 = new QVBoxLayout(); - Q3DBars *widgetchart = new Q3DBars(); + // For testing custom surface format + QSurfaceFormat surfaceFormat; + surfaceFormat.setDepthBufferSize(24); +#if !defined(QT_OPENGL_ES_2) + surfaceFormat.setSamples(8); +#endif + + Q3DBars *widgetchart = new Q3DBars(&surfaceFormat); QSize screenSize = widgetchart->screen()->size(); QWidget *container = QWidget::createWindowContainer(widgetchart); |