Ignore:
Timestamp:
Oct 31, 2025, 10:21:54 PM (2 months ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
49719b
Parents:
511f02
git-author:
Frederik Heber <frederik.heber@…> (10/31/25 22:10:16)
git-committer:
Frederik Heber <frederik.heber@…> (10/31/25 22:21:54)
Message:

FIX: Context menu destroyed hover functionality.

  • The right click activating the context menu was not accepted as an event. This caused the hovering over GLMoleculeObject functionality to break: Whenever the context menu was opened over an atom that we hover over, then the hover would remain active on that atom forever. No other atom can be selected,... This severely limited functionality.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/QtMainWindow.cpp

    r511f02 r71423c  
    138138
    139139  // add context menu on right click
    140   glWorldView->setContextMenuPolicy(Qt::CustomContextMenu);
     140  // NOTE(FH): The following did not emit the customContextMenuRequested on right click, had to trigger manually
     141  // glWorldView->setContextMenuPolicy(Qt::CustomContextMenu);
    141142  connect(glWorldView, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(slotContextMenuRequested(const QPoint&)));
    142143
     
    211212  }
    212213}
     214
    213215QtMainWindow::~QtMainWindow()
    214216{
Note: See TracChangeset for help on using the changeset viewer.