diff options
author | Samuel Rødal <samuel.rodal@digia.com> | 2012-12-05 20:39:34 +0100 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@digia.com> | 2012-12-06 20:23:32 +0100 |
commit | 75bbcca373018d93ea934a879020e9940b53d9fd (patch) | |
tree | 220f312c5e475f3ff1b2de43905312ec95f27b45 /src/compositor/wayland_wrapper | |
parent | c2651cb953c4dfcf1578a380e65d6a0ec20ca571 (diff) |
Cleaned out usages of removed or to be removed APIs.
Change-Id: Iabbada23d010ac0fdf99f88af3f109f94814b5ea
Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com>
Diffstat (limited to 'src/compositor/wayland_wrapper')
-rw-r--r-- | src/compositor/wayland_wrapper/wlextendedsurface.cpp | 20 | ||||
-rw-r--r-- | src/compositor/wayland_wrapper/wlextendedsurface.h | 6 |
2 files changed, 0 insertions, 26 deletions
diff --git a/src/compositor/wayland_wrapper/wlextendedsurface.cpp b/src/compositor/wayland_wrapper/wlextendedsurface.cpp index e0d6d2055..1ffb9c421 100644 --- a/src/compositor/wayland_wrapper/wlextendedsurface.cpp +++ b/src/compositor/wayland_wrapper/wlextendedsurface.cpp @@ -77,7 +77,6 @@ void SurfaceExtensionGlobal::get_extended_surface(struct wl_client *client, ExtendedSurface::ExtendedSurface(struct wl_client *client, uint32_t id, Surface *surface) : m_surface(surface) - , m_windowOrientation(Qt::PrimaryOrientation) , m_contentOrientation(Qt::PrimaryOrientation) , m_windowFlags(0) { @@ -138,29 +137,11 @@ static Qt::ScreenOrientation screenOrientationFromWaylandOrientation(int32_t ori } } -Qt::ScreenOrientation ExtendedSurface::windowOrientation() const -{ - return m_windowOrientation; -} - Qt::ScreenOrientation ExtendedSurface::contentOrientation() const { return m_contentOrientation; } -void ExtendedSurface::set_window_orientation(struct wl_client *client, - struct wl_resource *extended_surface_resource, - int32_t orientation) -{ - Q_UNUSED(client); - ExtendedSurface *extended_surface = static_cast<ExtendedSurface *>(extended_surface_resource->data); - - Qt::ScreenOrientation oldOrientation = extended_surface->m_windowOrientation; - extended_surface->m_windowOrientation = screenOrientationFromWaylandOrientation(orientation); - if (extended_surface->m_windowOrientation != oldOrientation) - emit extended_surface->m_surface->waylandSurface()->windowOrientationChanged(); -} - void ExtendedSurface::set_content_orientation(struct wl_client *client, struct wl_resource *extended_surface_resource, int32_t orientation) @@ -210,7 +191,6 @@ void ExtendedSurface::set_window_flags(wl_client *client, wl_resource *resource, const struct wl_extended_surface_interface ExtendedSurface::extended_surface_interface = { ExtendedSurface::update_generic_property, - ExtendedSurface::set_window_orientation, ExtendedSurface::set_content_orientation, ExtendedSurface::set_window_flags }; diff --git a/src/compositor/wayland_wrapper/wlextendedsurface.h b/src/compositor/wayland_wrapper/wlextendedsurface.h index 651acb35c..bb3192248 100644 --- a/src/compositor/wayland_wrapper/wlextendedsurface.h +++ b/src/compositor/wayland_wrapper/wlextendedsurface.h @@ -89,7 +89,6 @@ public: void setParent(ExtendedSurface *parent); QLinkedList<WaylandSurface *> subSurfaces() const; - Qt::ScreenOrientation windowOrientation() const; Qt::ScreenOrientation contentOrientation() const; WaylandSurface::WindowFlags windowFlags() const { return m_windowFlags; } @@ -105,7 +104,6 @@ private: struct wl_resource *m_extended_surface_resource; Surface *m_surface; - Qt::ScreenOrientation m_windowOrientation; Qt::ScreenOrientation m_contentOrientation; WaylandSurface::WindowFlags m_windowFlags; @@ -119,10 +117,6 @@ private: const char *name, struct wl_array *value); - static void set_window_orientation(struct wl_client *client, - struct wl_resource *resource, - int32_t orientation); - static void set_content_orientation(struct wl_client *client, struct wl_resource *resource, int32_t orientation); |