Ticket #4272 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

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:1 Changed 9 years ago by Janik Zikovsky

  • Status changed from new to accepted

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

comment:7 Changed 9 years ago by Michael Reuter

  • Status changed from verifying to closed

This seems to be working fine and is quite cool!

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5119

Note: See TracTickets for help on using tickets.