[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
This commit is contained in:
parent
04ccf04596
commit
37f65cf186
2 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue