KWidgetsAddons

kpassword.h
1/*
2 SPDX-FileCopyrightText: 2024 g10 Code GmbH
3 SPDX-FileContributor: Carl Schwan <carl.schwan@gnupg.com>
4 SPDX-FileContributor: Sune Stolborg Vuorela <sune@vuorela.dk>
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7#ifndef KPASSWORD_H
8#define KPASSWORD_H
9#include <QObject>
10#include <kwidgetsaddons_export.h>
11
12namespace KPassword
13{
14Q_NAMESPACE_EXPORT(KWIDGETSADDONS_EXPORT)
15
16/**
17 * This enum describe when the reveal password button is visible.
18 * @since 6.0
19 */
20enum class RevealMode {
21 /**
22 * Display the button when entering a new password, but doesn't let you see a
23 * previously entered password. This is the default.
24 */
25 OnlyNew,
26 /**
27 * Never display the reveal button.
28 */
29 Never,
30 /**
31 * Always display the reveal button. Usefull in a password manager for example.
32 */
33 Always,
34};
35Q_ENUM_NS(RevealMode)
36
37}
38#endif // KPASSWORD_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.