|
|
|
@ -39,7 +39,7 @@ class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin): |
|
|
|
self.allow_multi = allow_multi |
|
|
|
self.allow_multi = allow_multi |
|
|
|
self.setReadOnly(0) |
|
|
|
self.setReadOnly(0) |
|
|
|
self.addButton(":icons/file.png", self.file_input, _("Read file")) |
|
|
|
self.addButton(":icons/file.png", self.file_input, _("Read file")) |
|
|
|
icon = ":icons/qrcode_white.png" if ColorScheme.dark_scheme else ":icons/qrcode.png" |
|
|
|
icon = ":icons/camera_white.png" if ColorScheme.dark_scheme else ":icons/camera_dark.png" |
|
|
|
self.addButton(icon, self.qr_input, _("Read QR code")) |
|
|
|
self.addButton(icon, self.qr_input, _("Read QR code")) |
|
|
|
run_hook('scan_text_edit', self) |
|
|
|
run_hook('scan_text_edit', self) |
|
|
|
|
|
|
|
|
|
|
|
|