Ticket #4272 (closed: fixed)
Qt: Make a reusable object that syncs a checkable menu and a checkable button
Reported by: | Janik Zikovsky | Owned by: | Janik Zikovsky |
---|---|---|---|
Priority: | major | Milestone: | Release 2.0 |
Component: | MantidPlot | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Michael Reuter |
Description
So that a user can check a menu and this shows up in the button being checked, and vice-versa.
Encapsulate this in something reusable.
SyncedChecked(QAction*, QAbstractButton*)
Change History
comment:2 Changed 9 years ago by Janik Zikovsky
Refs #4272: Handy object that links a menu and a checkable button
Also refs #4271: used that to sync a menu in the SliceViewer with the button.
Changeset: 174031223f0971e19550a1ccec79fe71bad21ffb
comment:3 Changed 9 years ago by Janik Zikovsky
- Status changed from accepted to verify
- Resolution set to fixed
comment:4 Changed 9 years ago by Janik Zikovsky
Note to testers: it is in use in the SliceViewer, where the "Line Mode" and "Snap to Grid" menus are linked to toolbar buttons.
comment:5 Changed 9 years ago by Janik Zikovsky
Refs #4272: Handy object that links a menu and a checkable button
Also refs #4271: used that to sync a menu in the SliceViewer with the button.
Changeset: 174031223f0971e19550a1ccec79fe71bad21ffb
comment:6 Changed 9 years ago by Michael Reuter
- Status changed from verify to verifying
- Tester set to Michael Reuter