(self)
| 124 | return widget |
| 125 | |
| 126 | def _create_encryption_group(self): |
| 127 | enc_group = QGroupBox('Encryption/Decryption') |
| 128 | enc_layout = QHBoxLayout() |
| 129 | self.enc_box = create_encryption_combobox() |
| 130 | self.encode_box = QComboBox() |
| 131 | encodings = get_encodings() |
| 132 | for enc in encodings: |
| 133 | self.encode_box.addItem(enc['label'], enc['id']) |
| 134 | default_encoding = get_default_value('encoding') or 'base64' |
| 135 | for i in range(self.encode_box.count()): |
| 136 | if self.encode_box.itemData(i) == default_encoding: |
| 137 | self.encode_box.setCurrentIndex(i) |
| 138 | break |
| 139 | enc_layout.addWidget(self.enc_box, 8) |
| 140 | enc_layout.addWidget(self.encode_box, 2) |
| 141 | enc_group.setLayout(enc_layout) |
| 142 | return enc_group |
| 143 | |
| 144 | def _create_icon_group(self, folder_icon): |
| 145 | icon_widget = QWidget() |
no test coverage detected