Do not set a custom format on QQuickWindows

All QQuickWindows share a default format. By setting a custom format
it overwrites the default and this results in a format without a
stencil buffer being requested resulting in possible rendering errors.

REVIEW: 118122
This commit is contained in:
Martin Gräßlin 2014-05-14 11:38:31 +02:00
parent 1b3060649c
commit 02917b2335
2 changed files with 0 additions and 7 deletions

View File

@ -413,9 +413,6 @@ Dialog::Dialog(QQuickItem *parent)
: QQuickWindow(parent ? parent->window() : 0), : QQuickWindow(parent ? parent->window() : 0),
d(new DialogPrivate(this)) d(new DialogPrivate(this))
{ {
QSurfaceFormat format;
format.setAlphaBufferSize(8);
setFormat(format);
setClearBeforeRendering(true); setClearBeforeRendering(true);
setColor(QColor(Qt::transparent)); setColor(QColor(Qt::transparent));
setFlags(Qt::FramelessWindowHint); setFlags(Qt::FramelessWindowHint);

View File

@ -159,10 +159,6 @@ View::View(Plasma::Corona *corona, QWindow *parent)
: QQuickView(parent), : QQuickView(parent),
d(new ViewPrivate(corona, this)) d(new ViewPrivate(corona, this))
{ {
QSurfaceFormat format;
format.setAlphaBufferSize(8);
setFormat(format);
setColor(Qt::transparent); setColor(Qt::transparent);
QObject::connect(screen(), &QScreen::geometryChanged, QObject::connect(screen(), &QScreen::geometryChanged,