Commit 37f65cf1 authored by Martin Flöser's avatar Martin Flöser
Browse files

[server] Add const variants to methods in SubSurfaceInterface

Summary: Fixes errors in API of methods which should be const not being const.

Reviewers: #plasma

Subscribers: plasma-devel

Projects: #plasma

Differential Revision: https://phabricator.kde.org/D1214
parent 04ccf045
......@@ -294,12 +294,26 @@ QPoint SubSurfaceInterface::position() const
}
QPointer<SurfaceInterface> SubSurfaceInterface::surface()
{
// TODO: remove with ABI break (KF6)
Q_D();
return d->surface;
}
QPointer<SurfaceInterface> SubSurfaceInterface::surface() const
{
Q_D();
return d->surface;
}
QPointer<SurfaceInterface> SubSurfaceInterface::parentSurface()
{
// TODO: remove with ABI break (KF6)
Q_D();
return d->parent;
}
QPointer<SurfaceInterface> SubSurfaceInterface::parentSurface() const
{
Q_D();
return d->parent;
......
......@@ -82,8 +82,20 @@ public:
**/
bool isSynchronized() const;
// TODO: remove with ABI break (KF6)
QPointer<SurfaceInterface> surface();
/**
* @returns The surface this SubSurfaceInterface was created on.
* @since 5.7
**/
QPointer<SurfaceInterface> surface() const;
// TODO: remove with ABI break (KF6)
QPointer<SurfaceInterface> parentSurface();
/**
* @returns The parent surface for which this SubSurfaceInterface is a child
* @since 5.7
**/
QPointer<SurfaceInterface> parentSurface() const;
/**
* @returns the main surface for the sub-surface tree, that is the first surface without a parent
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment