Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[qt] Explain how to add a bookmark #7790

Merged
merged 1 commit into from
Apr 6, 2024
Merged

Conversation

pastk
Copy link
Contributor

@pastk pastk commented Apr 2, 2024

No description provided.

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
@pastk pastk requested a review from vng April 2, 2024 20:24
@pastk
Copy link
Contributor Author

pastk commented Apr 2, 2024

Though somehow ALT + RMB doesn't work for me. But CTRL + ALT + RMB works (same for ALT + LMB for current location, for me works with CTRL only). Do you know why?

@biodranik
Copy link
Member

What keys are used in the code?

@pastk
Copy link
Contributor Author

pastk commented Apr 2, 2024

  else if (IsRightButton(e))
  {
    if (IsAltModifier(e))
    {
      SubmitBookmark(pt);
    }
bool IsAltModifier(QMouseEvent const * const e) { return e->modifiers() & Qt::AltModifier; }

@biodranik biodranik merged commit 0a920b6 into master Apr 6, 2024
10 checks passed
@biodranik biodranik deleted the pastk-qt-bookmark-tooltip branch April 6, 2024 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants