Merge QOffscreenSurface constructor overloads
Address ### Qt 6 comment Change-Id: I4ca9085266f9008b769bb164e6169439adadb12f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
a5c71e4366
commit
70f7c484c3
@ -147,19 +147,6 @@ QOffscreenSurface::QOffscreenSurface(QScreen *targetScreen, QObject *parent)
|
|||||||
connect(d->screen, SIGNAL(destroyed(QObject*)), this, SLOT(screenDestroyed(QObject*)));
|
connect(d->screen, SIGNAL(destroyed(QObject*)), this, SLOT(screenDestroyed(QObject*)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
|
||||||
Creates an offscreen surface for the \a targetScreen.
|
|
||||||
|
|
||||||
The underlying platform surface is not created until create() is called.
|
|
||||||
|
|
||||||
\sa setScreen(), create()
|
|
||||||
*/
|
|
||||||
QOffscreenSurface::QOffscreenSurface(QScreen *targetScreen)
|
|
||||||
: QOffscreenSurface(targetScreen, nullptr)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Destroys the offscreen surface.
|
Destroys the offscreen surface.
|
||||||
*/
|
*/
|
||||||
|
@ -58,9 +58,7 @@ class Q_GUI_EXPORT QOffscreenSurface : public QObject, public QSurface
|
|||||||
Q_DECLARE_PRIVATE(QOffscreenSurface)
|
Q_DECLARE_PRIVATE(QOffscreenSurface)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// ### Qt 6: merge overloads
|
explicit QOffscreenSurface(QScreen *screen = nullptr, QObject *parent = nullptr);
|
||||||
explicit QOffscreenSurface(QScreen *screen, QObject *parent);
|
|
||||||
explicit QOffscreenSurface(QScreen *screen = nullptr);
|
|
||||||
~QOffscreenSurface();
|
~QOffscreenSurface();
|
||||||
|
|
||||||
SurfaceType surfaceType() const override;
|
SurfaceType surfaceType() const override;
|
||||||
|
Loading…
Reference in New Issue
Block a user