diff options
author | Joris | 2020-05-31 14:10:56 +0200 |
---|---|---|
committer | Joris | 2020-05-31 14:10:56 +0200 |
commit | a585e507cbe2c05cc846013cafe433953e514295 (patch) | |
tree | 69a8e3bf64de7a80fd8357a2e3c0d9d46110a5d9 /src/gui/tasks/table | |
parent | 0f1610333324d58acafee8c0fa9d9c9bc293b219 (diff) |
Open menu at the bottom right of the cursor
Diffstat (limited to 'src/gui/tasks/table')
-rw-r--r-- | src/gui/tasks/table/menu.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |