QtPass
2.0.0
Developer documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
secretplaintextedit.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2026 Anne Jan Brouwer
2
// SPDX-License-Identifier: GPL-3.0-or-later
8
#ifndef SRC_SECRETPLAINTEXTEDIT_H_
9
#define SRC_SECRETPLAINTEXTEDIT_H_
10
11
#include <QPlainTextEdit>
12
23
class
SecretPlainTextEdit
:
public
QPlainTextEdit {
24
Q_OBJECT
25
26
public
:
31
explicit
SecretPlainTextEdit
(QWidget *parent =
nullptr
);
32
33
signals:
39
void
copied
(
const
QString &text);
40
41
protected
:
46
[[nodiscard]]
auto
createMimeDataFromSelection
() const
47
-> QMimeData * override;
48
};
49
50
#endif
// SRC_SECRETPLAINTEXTEDIT_H_
SecretPlainTextEdit::createMimeDataFromSelection
auto createMimeDataFromSelection() const -> QMimeData *override
The selection as secret-marked plain text.
Definition
secretplaintextedit.cpp:16
SecretPlainTextEdit::SecretPlainTextEdit
SecretPlainTextEdit(QWidget *parent=nullptr)
Constructs the editor.
Definition
secretplaintextedit.cpp:13
SecretPlainTextEdit::copied
void copied(const QString &text)
Selected text was copied or cut out of the editor.
src
secretplaintextedit.h
Generated by
1.18.0