Make Scene::Window::window() and WindowPixmap::toplevel() const
No need to have them not const.
This commit is contained in:
parent
53b35e60e3
commit
952122dbe1
1 changed files with 4 additions and 4 deletions
8
scene.h
8
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue