()
| 17 | |
| 18 | |
| 19 | def create_encryption_combobox(): |
| 20 | combo = QComboBox() |
| 21 | combo.setIconSize(QSize(20, 20)) |
| 22 | |
| 23 | enc_icon = get_icon('enc') |
| 24 | manifest = load_plugins_manifest() |
| 25 | |
| 26 | for e in manifest['encryption']: |
| 27 | combo.addItem(enc_icon, e.get('label', e['id']), e['id']) |
| 28 | |
| 29 | default_enc = get_default_value('encryption') |
| 30 | if default_enc: |
| 31 | for i in range(combo.count()): |
| 32 | if combo.itemData(i) == default_enc: |
| 33 | combo.setCurrentIndex(i) |
| 34 | break |
| 35 | |
| 36 | return combo |
| 37 | |
| 38 | |
| 39 | def create_mem_mode_combobox(): |
no test coverage detected