mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Fix constness in generated C++ API
run(), show() and hide() should not be const, as well as the window() accessor.
This commit is contained in:
parent
bd556e03be
commit
e97ecea480
2 changed files with 6 additions and 6 deletions
|
@ -286,9 +286,9 @@ public:
|
|||
~Window() = default;
|
||||
|
||||
/// Registers the window with the windowing system in order to make it visible on the screen.
|
||||
void show() const { inner.show(); }
|
||||
void show() { inner.show(); }
|
||||
/// De-registers the window from the windowing system, therefore hiding it.
|
||||
void hide() const { inner.hide(); }
|
||||
void hide() { inner.hide(); }
|
||||
|
||||
/// \private
|
||||
private_api::WindowRc &window_handle() { return inner; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue