add file button to text edits
This commit is contained in:
parent
9fbbef4d17
commit
8689807400
|
@ -128,7 +128,6 @@ class InstallWizard(QDialog):
|
||||||
if func is None:
|
if func is None:
|
||||||
func = self.is_any
|
func = self.is_any
|
||||||
vbox, seed_e = seed_dialog.enter_seed_box(msg, self, sid)
|
vbox, seed_e = seed_dialog.enter_seed_box(msg, self, sid)
|
||||||
seed_e.addButton(":icons/copy.png", seed_e.file_input, _("Read file"))
|
|
||||||
vbox.addStretch(1)
|
vbox.addStretch(1)
|
||||||
button = OkButton(self, _('Next'))
|
button = OkButton(self, _('Next'))
|
||||||
vbox.addLayout(Buttons(CancelButton(self), button))
|
vbox.addLayout(Buttons(CancelButton(self), button))
|
||||||
|
|
|
@ -35,6 +35,7 @@ class ScanQRTextEdit(ButtonsTextEdit):
|
||||||
assert win, "You must pass a window with access to the config to ScanQRTextEdit constructor."
|
assert win, "You must pass a window with access to the config to ScanQRTextEdit constructor."
|
||||||
if win:
|
if win:
|
||||||
assert hasattr(win,"config"), "You must pass a window with access to the config to ScanQRTextEdit constructor."
|
assert hasattr(win,"config"), "You must pass a window with access to the config to ScanQRTextEdit constructor."
|
||||||
|
self.addButton(":icons/file.png", self.file_input, _("Read file"))
|
||||||
self.addButton(":icons/qrcode.png", self.qr_input, _("Read QR code"))
|
self.addButton(":icons/qrcode.png", self.qr_input, _("Read QR code"))
|
||||||
run_hook('scan_text_edit', self)
|
run_hook('scan_text_edit', self)
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<file>icons/confirmed.png</file>
|
<file>icons/confirmed.png</file>
|
||||||
<file>icons/copy.png</file>
|
<file>icons/copy.png</file>
|
||||||
<file>icons/expired.png</file>
|
<file>icons/expired.png</file>
|
||||||
|
<file>icons/file.png</file>
|
||||||
<file>icons/key.png</file>
|
<file>icons/key.png</file>
|
||||||
<file>icons/lock.png</file>
|
<file>icons/lock.png</file>
|
||||||
<file>icons/unlock.png</file>
|
<file>icons/unlock.png</file>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
Loading…
Reference in New Issue