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

Disable read options checkbox when needed

parent 429e7deb
No related branches found
No related tags found
No related merge requests found
...@@ -296,6 +296,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow): ...@@ -296,6 +296,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
self.set_open_files_list_texts() self.set_open_files_list_texts()
# self.search_button.setEnabled(not is_from_data_card_checked) # self.search_button.setEnabled(not is_from_data_card_checked)
self.log_checkbox.setEnabled(not is_from_data_card_checked)
self.search_line_edit.setEnabled(not is_from_data_card_checked) self.search_line_edit.setEnabled(not is_from_data_card_checked)
# QLineEdit does not change its color when it is disabled unless # QLineEdit does not change its color when it is disabled unless
# there is text inside, so we have to do it manually. # there is text inside, so we have to do it manually.
...@@ -316,6 +317,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow): ...@@ -316,6 +317,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
self.open_files_list.clear() self.open_files_list.clear()
self.set_open_files_list_texts() self.set_open_files_list_texts()
self.from_data_card_check_box.setEnabled(not is_checked)
self.search_line_edit.setEnabled(not is_checked) self.search_line_edit.setEnabled(not is_checked)
# QLineEdit does not change its color when it is disabled unless # QLineEdit does not change its color when it is disabled unless
# there is text inside, so we have to do it manually. # there is text inside, so we have to do it manually.
......
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