mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Type parent_layout passed as arguments to ConfigureScreen methods
This commit is contained in:
parent
f63f11186f
commit
f42f54019b
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ class ConfigureScreen(QtWidgets.QDialog):
|
|||
self.settings_panels += [self.add_settings_panel(search_type, layout)]
|
||||
self.add_action_panel(layout)
|
||||
|
||||
def add_settings_panel(self, search_type: SearchType, parent_layout):
|
||||
def add_settings_panel(self, search_type: SearchType, parent_layout: QtWidgets.QLayout):
|
||||
"Add Settings Panel for specified Search Type. Toggle Editable Search Types"
|
||||
search_type_settings = QtWidgets.QWidget()
|
||||
search_type_layout = QtWidgets.QVBoxLayout(search_type_settings)
|
||||
|
@ -50,7 +50,7 @@ class ConfigureScreen(QtWidgets.QDialog):
|
|||
parent_layout.addWidget(search_type_settings)
|
||||
return search_type_settings
|
||||
|
||||
def add_action_panel(self, parent_layout):
|
||||
def add_action_panel(self, parent_layout: QtWidgets.QLayout):
|
||||
"Add Action Panel"
|
||||
# Button to Save Settings
|
||||
action_bar = QtWidgets.QWidget()
|
||||
|
|
Loading…
Reference in a new issue