diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-09-03 09:23:50 +0200 |
---|---|---|
committer | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-10-03 08:53:18 +0200 |
commit | 45ae0527aed387ddc6c6e2af400006ae0a8ea2ec (patch) | |
tree | 3bf93cebaabc128b32e8bc4702df77ac354cf258 /src/compositor/compositor_api/qwaylandsurface.cpp | |
parent | 6e8bef14859836da27c5170aa829bafaf62714ed (diff) |
Compositor: Remove deprecated QWaylandSurface::size
[ChangeLog][Compositor] WaylandSurface.size referred to size in buffer
(not surface) coordinates which was confusing and has now been removed.
Use the bufferSize or surfaceSize properties instead.
Change-Id: Id435b58237e0425b241584f3d2e6ae04b534413d
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurface.cpp')
-rw-r--r-- | src/compositor/compositor_api/qwaylandsurface.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurface.cpp b/src/compositor/compositor_api/qwaylandsurface.cpp index 0d4cae642..497d621de 100644 --- a/src/compositor/compositor_api/qwaylandsurface.cpp +++ b/src/compositor/compositor_api/qwaylandsurface.cpp @@ -279,12 +279,8 @@ void QWaylandSurfacePrivate::surface_commit(Resource *) emit q->damaged(damage); - if (oldBufferSize != bufferSize) { + if (oldBufferSize != bufferSize) emit q->bufferSizeChanged(); -#if QT_DEPRECATED_SINCE(5, 13) - emit q->sizeChanged(); -#endif - } if (oldBufferScale != bufferScale) emit q->bufferScaleChanged(); @@ -564,26 +560,6 @@ QSize QWaylandSurface::bufferSize() const return d->bufferSize; } -#if QT_DEPRECATED_SINCE(5, 13) -/*! - * \qmlproperty size QtWaylandCompositor::WaylandSurface::size - * \obsolete use bufferSize or destinationSize instead - * - * This property has been deprecated, use \l bufferSize or \l destinationSize instead. - */ - -/*! - * \property QWaylandSurface::size - * \obsolete use bufferSize or destinationSize instead - * - * This property has been deprecated, use \l bufferSize or \l destinationSize instead. - */ -QSize QWaylandSurface::size() const -{ - return bufferSize(); -} -#endif - /*! * \qmlproperty size QtWaylandCompositor::WaylandSurface::bufferScale * |