diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2024-11-22 15:04:03 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2024-12-05 22:31:30 +0100 |
commit | 2d7ab2b66bf1266246fcbab6e428faf0af94d913 (patch) | |
tree | 0b6711ba92a05764b2a966967e4cc03c7f190dc7 /vcl/inc/salvtables.hxx | |
parent | f975b8418573b887cdc3269bcefa54bde6d60fa1 (diff) |
jsdialog: weld::Menu
- weld::Menu doesn't have base with weld::Widget
- use separate container, only one menu per WindowId
- first only send menu and cancel, when user activates
option we will send another request and execute entry
as menu can be blocking
- there is connect_activated way of async setup too
Change-Id: Iea03f82a91ecc19af67b91f85364675c119056ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177722
(cherry picked from commit efeb511607dacce991866bcf328c96a01ab594f9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177852
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/inc/salvtables.hxx')
-rw-r--r-- | vcl/inc/salvtables.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx index 534e158b4196..c183b7fdb57c 100644 --- a/vcl/inc/salvtables.hxx +++ b/vcl/inc/salvtables.hxx @@ -146,11 +146,12 @@ public: virtual ~SalInstanceBuilder() override; }; -class SAL_DLLPUBLIC_RTTI SalInstanceMenu final : public weld::Menu +class SAL_DLLPUBLIC_RTTI SalInstanceMenu : public weld::Menu { -private: +protected: VclPtr<PopupMenu> m_xMenu; +private: bool m_bTakeOwnership; sal_uInt16 m_nLastId; |