QtPass 2.0.0
Developer documentation
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
23class SecretPlainTextEdit : public QPlainTextEdit {
24 Q_OBJECT
25
26public:
31 explicit SecretPlainTextEdit(QWidget *parent = nullptr);
32
33signals:
39 void copied(const QString &text);
40
41protected:
46 [[nodiscard]] auto createMimeDataFromSelection() const
47 -> QMimeData * override;
48};
49
50#endif // SRC_SECRETPLAINTEXTEDIT_H_
auto createMimeDataFromSelection() const -> QMimeData *override
The selection as secret-marked plain text.
SecretPlainTextEdit(QWidget *parent=nullptr)
Constructs the editor.
void copied(const QString &text)
Selected text was copied or cut out of the editor.