18 #ifndef QGSPASSWORDLINEEDIT_H    19 #define QGSPASSWORDLINEEDIT_H    36     Q_PROPERTY( 
bool showLockIcon READ showLockIcon WRITE setShowLockIcon )
    51     void setShowLockIcon( 
bool visible );
    61     void setPasswordVisibility( 
bool visible );
    64     void togglePasswordVisibility( 
bool toggled );
    68     QAction *mActionShowHidePassword = 
nullptr;
    69     QAction *mActionLock = 
nullptr;
    71     QIcon mShowPasswordIcon;
    72     QIcon mHidePasswordIcon;
    74     bool mLockIconVisible = 
false;
    78 #endif // QGSPASSWORDLINEEDIT_H bool showLockIcon() const
Returns if a lock icon shall be shown on the left of the widget. 
 
QLineEdit subclass with built in support for showing/hiding entered password.