QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
secrettextbrowser.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_SECRETTEXTBROWSER_H_
9#define SRC_SECRETTEXTBROWSER_H_
10
11#include <QTextBrowser>
12
26class SecretTextBrowser : public QTextBrowser {
27 Q_OBJECT
28
29public:
34 explicit SecretTextBrowser(QWidget *parent = nullptr);
35
36signals:
41 void copied(const QString &text);
42
43protected:
48 [[nodiscard]] auto createMimeDataFromSelection() const
49 -> QMimeData * override;
50};
51
52#endif // SRC_SECRETTEXTBROWSER_H_
SecretTextBrowser(QWidget *parent=nullptr)
Constructs the browser.
auto createMimeDataFromSelection() const -> QMimeData *override
The selection as secret-marked plain text.
void copied(const QString &text)
Selected text was copied out of the browser.