diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-04-19 18:49:01 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-04-21 10:23:30 +0000 |
commit | 7be9653f1288d32bc732262b01ba910f6a321ecd (patch) | |
tree | 60f998642b5bd3e477e3c590d994ef7e33e7854f /src/gui/kernel/qoffscreensurface.h | |
parent | ecf440d89dcbf422f78fdf8e88fbcacd0108560c (diff) |
QOffscreenSurface: add a constructor taking a parent object
Just like all QObject subclasses. Use a delegating constructor
call to share the code from the existing constructor.
Change-Id: Ia3c893ccc4c94883e61337f8952d80b665c17fbf
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/kernel/qoffscreensurface.h')
-rw-r--r-- | src/gui/kernel/qoffscreensurface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qoffscreensurface.h b/src/gui/kernel/qoffscreensurface.h index 35c498c89a..6a90ba2c9b 100644 --- a/src/gui/kernel/qoffscreensurface.h +++ b/src/gui/kernel/qoffscreensurface.h @@ -57,7 +57,8 @@ class Q_GUI_EXPORT QOffscreenSurface : public QObject, public QSurface Q_DECLARE_PRIVATE(QOffscreenSurface) public: - + // ### Qt 6: merge overloads + explicit QOffscreenSurface(QScreen *screen, QObject *parent = Q_NULLPTR); explicit QOffscreenSurface(QScreen *screen = Q_NULLPTR); virtual ~QOffscreenSurface(); |