1
0

qt: move window.get{Open,Save}FileName to util

Sometimes we want its "remember path" behaviour but it does not make sense to
parent the dialog from main window. When so, caller code no longer needs to
get a reference to a main window.

Also rm last usages of get_parent_main_window().
This commit is contained in:
SomberNight
2020-12-20 14:39:15 +01:00
parent 096d853482
commit b28b3994c7
11 changed files with 157 additions and 108 deletions

View File

@@ -32,8 +32,8 @@ from .util import ButtonsTextEdit
class CompletionTextEdit(ButtonsTextEdit):
def __init__(self, parent=None):
super(CompletionTextEdit, self).__init__(parent)
def __init__(self):
ButtonsTextEdit.__init__(self)
self.completer = None
self.moveCursor(QTextCursor.End)
self.disable_suggestions()