Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

move "OK" button below cursor when opening label dialog #893

Merged
merged 1 commit into from
Jun 12, 2022

Conversation

breunigs
Copy link
Contributor

The intent for this change is to allow faster labeling when there
are streaks of the same label occasionally, but not consistently
enough to enable "default label" mode. With this PR the user can
simply click again to confirm the previous selection, without
having to aim for the OK button, or move either hand to the
ENTER key.

The alignment and position change of the buttons is for two reasons:

  • it covers less of the drawn shape, easing verification of the
    label to be selected
  • the alignment wasn't taken into account for offset calculation.
    It works if the dialog is shown, but that causes the dialog to
    briefly flicker in the old position. Presumably an adjustSize
    or similar is needed on more widgets, but I was unable to
    figure out which.

The intent for this change is to allow faster labeling when there
are streaks of the same label occasionally, but not consistently
enough to enable "default label" mode. With this PR the user can
simply click again to confirm the previous selection, without
having to aim for the OK button, or move either hand to the
ENTER button.

The alignment and position change of the buttons is for two reasons:
- it covers less of the drawn shape, easing verification of the
  label to be selected
- the alignment wasn't taken into account for offset calculation.
  It works if the dialog is shown, but that causes the dialog to
  briefly flicker in the old position. Presumably an `adjustSize`
  or similar is needed on more widgets, but I was unable to
  figure out which.
Copy link
Contributor

@tzutalin tzutalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, the description of PR explains very clearly. Thanks

@tzutalin tzutalin merged commit 0c377fc into HumanSignal:master Jun 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants