|
QtPass 2.0.0
Developer documentation
|
A QPlainTextEdit for decrypted entry text being edited: whatever is copied or cut out of it is marked as a secret and reported for autoclear. More...
#include <secretplaintextedit.h>
Signals | |
| void | copied (const QString &text) |
| Selected text was copied or cut out of the editor. | |
Public Member Functions | |
| SecretPlainTextEdit (QWidget *parent=nullptr) | |
| Constructs the editor. | |
Protected Member Functions | |
| auto | createMimeDataFromSelection () const -> QMimeData *override |
| The selection as secret-marked plain text. | |
A QPlainTextEdit for decrypted entry text being edited: whatever is copied or cut out of it is marked as a secret and reported for autoclear.
As in SecretTextBrowser, every way text leaves the editor (Ctrl+C, Ctrl+X, the context menu, a drag, and the X11 primary selection a mouse selection fills) goes through createMimeDataFromSelection().
Definition at line 23 of file secretplaintextedit.h.
|
explicit |
Constructs the editor.
| parent | Owner. |
Definition at line 13 of file secretplaintextedit.cpp.
|
signal |
Selected text was copied or cut out of the editor.
| text | The text, as put on the clipboard, in the selection or in the drag. |
|
nodiscardoverrideprotected |
The selection as secret-marked plain text.
Definition at line 16 of file secretplaintextedit.cpp.