mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: port context menu to QtQuick
This is for desktop only. We will have to think about what to do on mobile. Either a "hamburger menu" or a "long click" seem to be the most reasonable options. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b099e17042
commit
c1c35ad48b
4 changed files with 84 additions and 15 deletions
|
@ -307,6 +307,10 @@ void ChartView::setLayerVisibility(size_t z, bool visible)
|
|||
|
||||
void ChartView::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
// Only left-button for drag events.
|
||||
if (event->button() != Qt::LeftButton)
|
||||
return event->ignore();
|
||||
|
||||
QPointF pos = event->localPos();
|
||||
|
||||
for (auto item: dragableItems) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue