aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoris2020-05-31 14:10:56 +0200
committerJoris2020-05-31 14:10:56 +0200
commita585e507cbe2c05cc846013cafe433953e514295 (patch)
tree69a8e3bf64de7a80fd8357a2e3c0d9d46110a5d9 /src
parent0f1610333324d58acafee8c0fa9d9c9bc293b219 (diff)
Open menu at the bottom right of the cursor
Diffstat (limited to 'src')
-rw-r--r--src/gui/tags/panel/table/menu.py4
-rw-r--r--src/gui/tasks/table/menu.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/tags/panel/table/menu.py b/src/gui/tags/panel/table/menu.py
index f95c097..2238444 100644
--- a/src/gui/tags/panel/table/menu.py
+++ b/src/gui/tags/panel/table/menu.py
@@ -1,4 +1,4 @@
-from PyQt5 import QtWidgets
+from PyQt5 import QtWidgets, QtCore
import db.tags
import gui.tags.panel.dialog
@@ -16,7 +16,7 @@ def open(table, update_tag_signal, position):
delete_action = menu.addAction(gui.icon.trash(menu.style()), 'delete')
- action = menu.exec_(table.mapToGlobal(position))
+ action = menu.exec_(table.mapToGlobal(position + QtCore.QPoint(15, 20)))
if action == modify_action and len(rows) == 1:
row = list(rows)[0]
tag = table.model().get_at(row)
diff --git a/src/gui/tasks/table/menu.py b/src/gui/tasks/table/menu.py
index f22176c..5404d6c 100644
--- a/src/gui/tasks/table/menu.py
+++ b/src/gui/tasks/table/menu.py
@@ -1,4 +1,4 @@
-from PyQt5 import QtWidgets
+from PyQt5 import QtWidgets, QtCore
from typing import List
import db.tasks
@@ -18,7 +18,7 @@ def open(table, update_task_signal, position):
delete_action = menu.addAction(gui.icon.trash(menu.style()), 'delete')
- action = menu.exec_(table.mapToGlobal(position))
+ action = menu.exec_(table.mapToGlobal(position + QtCore.QPoint(15, 20)))
if action == modify_action and len(rows) == 1:
row = list(rows)[0]
(task, tags) = table.get_at(row)