Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** \class QgsPasswordLineEdit | ||
* \ingroup gui | ||
* QLineEdit subclass with built in support for showing/hiding | ||
* entered password. | ||
* @note added in QGIS 3.0 | ||
**/ | ||
class QgsPasswordLineEdit : QLineEdit | ||
{ | ||
%TypeHeaderCode | ||
#include <qgspasswordlineedit.h> | ||
%End | ||
|
||
public: | ||
|
||
/** Constructor for QgsPasswordLineEdit. | ||
* @param parent parent widget | ||
*/ | ||
QgsPasswordLineEdit( QWidget *parent = nullptr ); | ||
|
||
/** Define if a lock icon shall be shown on the left of the widget | ||
* @param visible set to false to hide the lock icon | ||
*/ | ||
void setShowLockIcon( bool visible ); | ||
|
||
/** Returns if a lock icon shall be shown on the left of the widget | ||
*/ | ||
bool showLockIcon() const; | ||
}; |