diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-09-03 14:12:50 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-09-04 16:12:47 +0200 |
commit | cc4fe466a1c7dfba937a0926b6f94900ce512942 (patch) | |
tree | 4374b7bb2a791066f6b38a2f5c58764a58f8f654 /examples | |
parent | 82d713d89638ebd49ed87bf5f66362a93607efd8 (diff) | |
download | qtwayland-cc4fe466a1c7dfba937a0926b6f94900ce512942.tar.gz |
Rename primary(Output|OutputSpace) to default(Output|OutputSpace)
Change-Id: I0bbe6dd6bd8e9f6972cc88b832029ac98aa2af49
Diffstat (limited to 'examples')
-rw-r--r-- | examples/wayland/pure-qml/qml/main.qml | 9 | ||||
-rw-r--r-- | examples/wayland/qml-compositor/main.cpp | 2 | ||||
-rw-r--r-- | examples/wayland/qwindow-compositor/qwindowcompositor.cpp | 6 | ||||
-rw-r--r-- | examples/wayland/server-buffer/compositor/main.cpp | 4 |
4 files changed, 8 insertions, 13 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml index 61b88574..0fe92668 100644 --- a/examples/wayland/pure-qml/qml/main.qml +++ b/examples/wayland/pure-qml/qml/main.qml @@ -66,7 +66,7 @@ WaylandCompositor { } onCreateShellSurface: { - var item = chromeComponent.createObject(primaryOutput.surfaceArea, { "surface": surface } ); + var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "surface": surface } ); var shellSurface = shellSurfaceComponent.createObject(); shellSurface.initialize(defaultShell, surface, item.view, client, id); } @@ -77,12 +77,7 @@ WaylandCompositor { } ] - function addScreen() { - var screen = screenComponent.createObject(0, { "outputSpace" : primaryOutputSpace } ); - } - Component.onCompleted: { - addScreen(WaylandOutput.PrimaryOutput); + screenComponent.createObject(0, { "outputSpace" : defaultOutputSpace } ); } - } diff --git a/examples/wayland/qml-compositor/main.cpp b/examples/wayland/qml-compositor/main.cpp index a3bd6671..a01183bb 100644 --- a/examples/wayland/qml-compositor/main.cpp +++ b/examples/wayland/qml-compositor/main.cpp @@ -72,7 +72,7 @@ public: setResizeMode(QQuickView::SizeRootObjectToView); setColor(Qt::black); winId(); - m_output = new QWaylandQuickOutput(m_compositor.primaryOutputSpace(), this); + m_output = new QWaylandQuickOutput(m_compositor.defaultOutputSpace(), this); connect(this, SIGNAL(afterRendering()), this, SLOT(sendCallbacks())); connect(&m_compositor, &QWaylandCompositor::surfaceCreated, this, &QmlCompositor::onSurfaceCreated); diff --git a/examples/wayland/qwindow-compositor/qwindowcompositor.cpp b/examples/wayland/qwindow-compositor/qwindowcompositor.cpp index 7522e3cd..e89ec3ae 100644 --- a/examples/wayland/qwindow-compositor/qwindowcompositor.cpp +++ b/examples/wayland/qwindow-compositor/qwindowcompositor.cpp @@ -147,7 +147,7 @@ void QWindowCompositor::create() { QWaylandCompositor::create(); - new QWaylandOutput(primaryOutputSpace(), m_window); + new QWaylandOutput(defaultOutputSpace(), m_window); m_renderScheduler.setSingleShot(true); connect(&m_renderScheduler, &QTimer::timeout, this, &QWindowCompositor::render); @@ -343,7 +343,7 @@ QWaylandView *QWindowCompositor::viewAt(const QPointF &point, QPointF *local) void QWindowCompositor::render() { m_window->makeCurrent(); - primaryOutput()->frameStarted(); + defaultOutput()->frameStarted(); cleanupGraphicsResources(); @@ -364,7 +364,7 @@ void QWindowCompositor::render() } m_textureBlitter->release(); - primaryOutput()->sendFrameCallbacks(); + defaultOutput()->sendFrameCallbacks(); // N.B. Never call glFinish() here as the busylooping with vsync 'feature' of the nvidia binary driver is not desirable. m_window->swapBuffers(); diff --git a/examples/wayland/server-buffer/compositor/main.cpp b/examples/wayland/server-buffer/compositor/main.cpp index 36a9ca9c..ecec5c8c 100644 --- a/examples/wayland/server-buffer/compositor/main.cpp +++ b/examples/wayland/server-buffer/compositor/main.cpp @@ -86,7 +86,7 @@ public: m_view.setResizeMode(QQuickView::SizeRootObjectToView); m_view.setColor(Qt::black); m_view.create(); - m_output = new QWaylandQuickOutput(primaryOutputSpace(), &m_view); + m_output = new QWaylandQuickOutput(defaultOutputSpace(), &m_view); connect(&m_view, &QQuickView::afterRendering, this, &QmlCompositor::sendCallbacks); @@ -214,7 +214,7 @@ private slots: protected: void sizeAdjusted() { - primaryOutputSpace()->primaryOutput()->setGeometry(QRect(QPoint(0, 0), m_view.size())); + defaultOutput()->setGeometry(QRect(QPoint(0, 0), m_view.size())); } void onSurfaceCreated(QWaylandSurface *surface) { |