mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 19:32:57 +00:00
remove unused QDummyWindowSurface
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
17be31db33
commit
f022c161c5
1 changed files with 3 additions and 21 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Add table
Reference in a new issue