summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xassignment-list.py1
-rw-r--r--entry.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/assignment-list.py b/assignment-list.py
index 194f130..6266d77 100755
--- a/assignment-list.py
+++ b/assignment-list.py
@@ -270,7 +270,6 @@ class AssignmentList(QMainWindow):
entries_vbox.addLayout(e_layout)
# Create custom context menu
- e_layout.itemAt(1).widget().setToolTip("Right-Click for actions")
e_layout.itemAt(1).widget().setContextMenuPolicy(Qt.CustomContextMenu)
e_layout.itemAt(1).widget().customContextMenuRequested.connect((lambda id: lambda: self.entryContextMenu(id))(e.id))
diff --git a/entry.py b/entry.py
index 0ff173a..67d290a 100644
--- a/entry.py
+++ b/entry.py
@@ -25,6 +25,7 @@ class Entry:
body.setTextInteractionFlags(Qt.TextSelectableByMouse | Qt.LinksAccessibleByMouse)
body.setFont(QFont("Arial", 11))
body.setWordWrap(True)
+ body.setToolTip("Right-Click for actions")
if self.done:
bullet.setText("\u2713 ")
@@ -45,6 +46,7 @@ class Entry:
body.setText(body.text() + self.desc)
if self.link:
body.setText(body.text() + "</a>")
+ body.setToolTip("{}".format(self.link))
output.addWidget(body)
output.addStretch()