From 952122dbe14f04edef7d2d29299dd62d68d9bd3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 1 Apr 2016 09:17:27 +0200 Subject: [PATCH] Make Scene::Window::window() and WindowPixmap::toplevel() const No need to have them not const. --- scene.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scene.h b/scene.h index ff8e751d4c..279f71394d 100644 --- a/scene.h +++ b/scene.h @@ -239,7 +239,7 @@ public: QRect rect() const; // access to the internal window class // TODO eventually get rid of this - Toplevel* window(); + Toplevel* window() const; // should the window be painted bool isPaintingEnabled() const; void resetPaintingEnabled(); @@ -390,7 +390,7 @@ public: * @brief Returns the Toplevel this WindowPixmap belongs to. * Note: the Toplevel can change over the lifetime of the WindowPixmap in case the Toplevel is copied to Deleted. */ - Toplevel *toplevel(); + Toplevel *toplevel() const; protected: explicit WindowPixmap(Scene::Window *window); @@ -480,7 +480,7 @@ QRect Scene::Window::rect() const } inline -Toplevel* Scene::Window::window() +Toplevel* Scene::Window::window() const { return toplevel; } @@ -553,7 +553,7 @@ T* Scene::Window::previousWindowPixmap() } inline -Toplevel* WindowPixmap::toplevel() +Toplevel* WindowPixmap::toplevel() const { return m_window->window(); }