Skip to content

Commit

Permalink
#606 minor updates
Browse files Browse the repository at this point in the history
-added completer changes for text item
  • Loading branch information
ktechhydle committed Sep 17, 2024
1 parent d7c028f commit 6b6c6ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/framework/custom_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ def __init__(self, text="", parent=None):

# Create the suggestion popup
self.suggestion_popup = QListWidget()
self.suggestion_popup.setToolTip('<i>Press the up-arrow key to accept suggestions</i>')
self.suggestion_popup.setStyleSheet('''
QListWidget {
background-color: #535353;
Expand Down Expand Up @@ -669,6 +670,9 @@ def completeText(self, item):
self.moveCursorToEnd()
self.suggestion_popup.hide()

if isinstance(self.parentItem(), LeaderLineItem):
self.parentItem().updatePathEndPoint()

def focusOutEvent(self, event):
if self.suggestion_popup.isVisible():
self.suggestion_popup.close()
Expand Down

0 comments on commit 6b6c6ef

Please sign in to comment.