QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | Properties | List of all members
QgsPasswordLineEdit Class Reference

QLineEdit subclass with built in support for showing/hiding entered password. More...

#include <qgspasswordlineedit.h>

Inheritance diagram for QgsPasswordLineEdit:
Inheritance graph
[legend]

Public Member Functions

 QgsPasswordLineEdit (QWidget *parent=nullptr, bool passwordVisible=false)
 Constructor for QgsPasswordLineEdit. More...
 
void setPasswordVisibility (bool visible)
 Set state of the password's visibility. More...
 
void setShowLockIcon (bool visible)
 Define if a lock icon shall be shown on the left of the widget. More...
 
bool showLockIcon () const
 Returns if a lock icon shall be shown on the left of the widget. More...
 

Properties

bool showLockIcon
 

Detailed Description

QLineEdit subclass with built in support for showing/hiding entered password.

Since
QGIS 3.0

Definition at line 33 of file qgspasswordlineedit.h.

Constructor & Destructor Documentation

QgsPasswordLineEdit::QgsPasswordLineEdit ( QWidget *  parent = nullptr,
bool  passwordVisible = false 
)

Constructor for QgsPasswordLineEdit.

Parameters
parentparent widget
passwordVisibleInitial state of the password's visibility

Definition at line 21 of file qgspasswordlineedit.cpp.

Member Function Documentation

void QgsPasswordLineEdit::setPasswordVisibility ( bool  visible)

Set state of the password's visibility.

Definition at line 39 of file qgspasswordlineedit.cpp.

void QgsPasswordLineEdit::setShowLockIcon ( bool  visible)

Define if a lock icon shall be shown on the left of the widget.

Parameters
visibleset to false to hide the lock icon

Definition at line 60 of file qgspasswordlineedit.cpp.

bool QgsPasswordLineEdit::showLockIcon ( ) const
inline

Returns if a lock icon shall be shown on the left of the widget.

Definition at line 56 of file qgspasswordlineedit.h.

Property Documentation

bool QgsPasswordLineEdit::showLockIcon
readwrite

Definition at line 36 of file qgspasswordlineedit.h.


The documentation for this class was generated from the following files: