diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-09-14 12:35:52 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-09-14 12:17:05 +0000 |
commit | f5f06c709937b657c66ca4e35f4e3065ba390153 (patch) | |
tree | 1019883bf566cc7de6d86b9cd2ab4f43b342b26c /src/compositor/compositor_api/qwaylandview.cpp | |
parent | 2deffa537c82e2f21e01dff5c8f5ba283dd06032 (diff) |
Remove global coordinates
This involves removing:
- pickView and mapView from QWaylandOutput
- requestedPos[X,Y] from QWaylandView
Change-Id: Ie53eef434ac6ae7d0d5474f649f78a59ae857167
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandview.cpp')
-rw-r--r-- | src/compositor/compositor_api/qwaylandview.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/compositor/compositor_api/qwaylandview.cpp b/src/compositor/compositor_api/qwaylandview.cpp index ecc337bb4..7f1d3b93d 100644 --- a/src/compositor/compositor_api/qwaylandview.cpp +++ b/src/compositor/compositor_api/qwaylandview.cpp @@ -144,51 +144,6 @@ void QWaylandView::setOutput(QWaylandOutput *newOutput) emit outputChanged(); } -void QWaylandView::setRequestedPosition(const QPointF &pos) -{ - Q_D(QWaylandView); - bool xChanged = !qFuzzyCompare(pos.x(), d->requestedPos.x()); - bool yChanged = !qFuzzyCompare(pos.y(), d->requestedPos.y()); - if (xChanged || yChanged) { - d->requestedPos = pos; - emit requestedPositionChanged(); - } - if (xChanged) - emit requestedXPositionChanged(); - if (yChanged) - emit requestedYPositionChanged(); -} - -QPointF QWaylandView::requestedPosition() const -{ - Q_D(const QWaylandView); - return d->requestedPos; -} - -qreal QWaylandView::requestedXPosition() const -{ - Q_D(const QWaylandView); - return d->requestedPos.x(); -} - -void QWaylandView::setRequestedXPosition(qreal xPos) -{ - Q_D(QWaylandView); - setRequestedPosition(QPointF(xPos, d->requestedPos.y())); -} - -qreal QWaylandView::requestedYPosition() const -{ - Q_D(const QWaylandView); - return d->requestedPos.y(); -} - -void QWaylandView::setRequestedYPosition(qreal yPos) -{ - Q_D(QWaylandView); - setRequestedPosition(QPointF(d->requestedPos.x(), yPos)); -} - void QWaylandView::attach(const QWaylandBufferRef &ref, const QRegion &damage) { Q_D(QWaylandView); |