remove unused QDummyWindowSurface

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-05-01 19:16:05 +00:00
parent 17be31db33
commit f022c161c5

View file

@ -252,32 +252,14 @@ QWidgetPrivate::~QWidgetPrivate()
#endif //QT_NO_GRAPHICSEFFECT #endif //QT_NO_GRAPHICSEFFECT
} }
class QDummyWindowSurface : public QWindowSurface
{
public:
QDummyWindowSurface(QWidget *window) : QWindowSurface(window) {}
QPaintDevice *paintDevice() { return window(); }
void flush(QWidget *, const QRegion &, const QPoint &) {}
};
QWindowSurface *QWidgetPrivate::createDefaultWindowSurface() QWindowSurface *QWidgetPrivate::createDefaultWindowSurface()
{ {
Q_Q(QWidget); Q_Q(QWidget);
QWindowSurface *surface; if (QApplicationPrivate::graphics_system) {
#ifndef QT_NO_PROPERTIES return QApplicationPrivate::graphics_system->createWindowSurface(q);
if (q->property("_q_DummyWindowSurface").toBool()) {
surface = new QDummyWindowSurface(q);
} else
#endif
{
if (QApplicationPrivate::graphics_system)
surface = QApplicationPrivate::graphics_system->createWindowSurface(q);
else
surface = createDefaultWindowSurface_sys();
} }
return createDefaultWindowSurface_sys();
return surface;
} }
/*! /*!