Skip to content
Snippets Groups Projects
Commit 20d5df5b authored by Kien Le's avatar Kien Le
Browse files

Add checkbox to only read log files

parent f4b9d7aa
No related branches found
No related tags found
1 merge request!191Read log files generated by users
......@@ -83,6 +83,11 @@ class UIMainWindow(object):
"""
self.search_line_edit: Union[QLineEdit, None] = None
"""
log_checkbox: checkbox for user to indicate that they are reading a log
file
"""
self.log_checkbox: Union[QCheckBox, None] = None
"""
clear_button: clear search_line_edit
"""
self.clear_search_action: Optional[QAction] = None
......@@ -365,7 +370,10 @@ class UIMainWindow(object):
self.open_files_list = QListWidget(
self.central_widget)
self.search_line_edit = QLineEdit(self.central_widget)
file_layout = QHBoxLayout(self.central_widget)
file_layout.setSpacing(20)
left_layout.addLayout(file_layout)
self.search_line_edit = QLineEdit()
self.search_line_edit.setPlaceholderText('Search...')
self.search_line_edit.setToolTip('Filter the list of files based on '
'the content.')
......@@ -390,7 +398,10 @@ class UIMainWindow(object):
raise ValueError('No clear button could be found. Check its '
'objectName attribute using QObject.findChildren '
'without a name.')
left_layout.addWidget(self.search_line_edit)
file_layout.addWidget(self.search_line_edit)
self.log_checkbox = QCheckBox("log")
file_layout.addWidget(self.log_checkbox)
left_layout.addWidget(self.open_files_list, 1)
pal = self.open_files_list.palette()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment