Commit Graph

9 Commits

Author SHA1 Message Date
Zheng, Lei
ae8ba0de3d Gui: fix shortcut context handling in ShortcutManager
Related #6097

Qt ignores shortcut of actions in invisible toolbar, but not for actions
in a hidden menu action of menu bar, which is likely a Qt bug. The
desired behavior should be that of toolbar actions, so that actions
belong to different workbenches can have the same shortcut without
conflict.

This commit works around this inconsistency by ensuring only the active
actions are added in menu bar. In addition, all active actions will be
added to a zero sized child widget of the main window, which ensures the
shortcuts of these actions being active regardless whether the action is
in toolbar or menu bar, visible or not.
2022-11-10 23:20:18 +01:00
berniev
15419982d4 Base: Modernise ctors dtors defs etc 2022-08-02 12:37:46 +02:00
Uwe
1847cb2b4f [Base] fix a -Wunused CI compiler warning 2022-07-09 16:23:04 +02:00
wmayer
55828c22c0 Py: make FreeCAD to compile with Py3.11 2022-07-01 17:54:50 +02:00
Uwe
6f746497c1 [Base] compile fix for Windows without PCH 2022-03-08 03:00:36 +01:00
wmayer
985ad1c9d1 Base: [skip ci] revert copyright change 2022-03-06 22:20:35 +01:00
Uwe
ded61a5fd5 [Base] ConsoleObserver: fix compilation with precompiled headers 2022-03-06 15:08:09 +01:00
Uwe
8e12e6ac98 [Base] ConsoleObserver: correct copyright 2022-03-06 14:51:58 +01:00
wmayer
91e4e468dd Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code 2022-03-06 10:13:47 +01:00