diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-10 21:58:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-10 21:58:08 +0300 |
commit | f3af5f96c82044769ac2d1194cfa1ea0aca17bf5 (patch) | |
tree | 6722a88198292e82e0f00bf24a71bee3be6c120d /src/gui/widgets/window.h | |
parent | cb6f070779f94f3d69ba7576affb0588b61e7b7c (diff) | |
download | plus-f3af5f96c82044769ac2d1194cfa1ea0aca17bf5.tar.gz plus-f3af5f96c82044769ac2d1194cfa1ea0aca17bf5.tar.bz2 plus-f3af5f96c82044769ac2d1194cfa1ea0aca17bf5.tar.xz plus-f3af5f96c82044769ac2d1194cfa1ea0aca17bf5.zip |
Add close button to all shortcuts windows.
Diffstat (limited to 'src/gui/widgets/window.h')
-rw-r--r-- | src/gui/widgets/window.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index 07ff9bf94..ec0ce8b43 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -181,6 +181,12 @@ class Window notfinal : public BasicContainer2, bool getCloseButton() const A_WARN_UNUSED { return mCloseWindowButton; } + void setAllowClose(const bool b) + { mAllowClose = b; } + + bool getAlowClose() const A_WARN_UNUSED + { return mCloseWindowButton || mAllowClose; } + /** * Returns whether the window can be resized. */ @@ -711,6 +717,7 @@ class Window notfinal : public BasicContainer2, bool mPlayVisibleSound; bool mInit; bool mTextChanged; + bool mAllowClose; }; #endif // GUI_WIDGETS_WINDOW_H |