mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
d150d8f2b7
There is no action associated with clicking the button itself, only for the menu associated with it. Using QToolButton::MenuButtonPopup means that the majority of the button is for the button's own action, and there is a small arrow next to the button that shows the menu. Since there's no action, this means that the small menu arrow needs to be clicked each time instead of the big button, which is annoying. QToolButton::InstantPopup instead always shows the menu (though it doesn't have the arrow indicating a menu exists, although this is not particularly important). InstantPopup is also already used for the "Insert" button used when editing a custom shader for the texture viewer. MenuButtonPopup is used in many other places throughout RenderDoc, but they are all save or export buttons where there is a meaningful default action.