|
QtPass 2.0.0
Developer documentation
|
A QTextBrowser for decrypted entry text: whatever is copied out of it is marked as a secret and reported for autoclear. More...
#include <secrettextbrowser.h>
Signals | |
| void | copied (const QString &text) |
| Selected text was copied out of the browser. | |
Public Member Functions | |
| SecretTextBrowser (QWidget *parent=nullptr) | |
| Constructs the browser. | |
Protected Member Functions | |
| auto | createMimeDataFromSelection () const -> QMimeData *override |
| The selection as secret-marked plain text. | |
A QTextBrowser for decrypted entry text: whatever is copied out of it is marked as a secret and reported for autoclear.
Every way text leaves a QTextEdit (Ctrl+C, the context menu's Copy, a drag, and the X11 primary selection a mouse selection fills) goes through createMimeDataFromSelection(). Here that builds the same MIME data as ClipboardManager, with the platform hints that keep clipboard history and cloud clipboard out, and emits copied() so the text is cleared with the rest when the autoclear timer runs.
Definition at line 26 of file secrettextbrowser.h.
|
explicit |
Constructs the browser.
| parent | Owner. |
Definition at line 12 of file secrettextbrowser.cpp.
|
signal |
Selected text was copied out of the browser.
| text | The text, as put on the clipboard or in the drag. |
|
nodiscardoverrideprotected |
The selection as secret-marked plain text.
Definition at line 14 of file secrettextbrowser.cpp.