Skip to content

Commit a537c0c

Browse files
committedMar 14, 2017
add SIP bindings
1 parent 9e41b82 commit a537c0c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
 

‎python/gui/gui.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
%Include qgsowssourceselect.sip
135135
%Include qgspanelwidget.sip
136136
%Include qgspanelwidgetstack.sip
137+
%Include qgspasswordlineedit.sip
137138
%Include qgspixmaplabel.sip
138139
%Include qgspluginmanagerinterface.sip
139140
%Include qgspresetcolorrampdialog.sip

‎python/gui/qgspasswordlineedit.sip

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/** \class QgsPasswordLineEdit
2+
* \ingroup gui
3+
* QLineEdit subclass with built in support for showing/hiding
4+
* entered password.
5+
* @note added in QGIS 3.0
6+
**/
7+
class QgsPasswordLineEdit : QLineEdit
8+
{
9+
%TypeHeaderCode
10+
#include <qgspasswordlineedit.h>
11+
%End
12+
13+
public:
14+
15+
/** Constructor for QgsPasswordLineEdit.
16+
* @param parent parent widget
17+
*/
18+
QgsPasswordLineEdit( QWidget *parent = nullptr );
19+
20+
/** Define if a lock icon shall be shown on the left of the widget
21+
* @param visible set to false to hide the lock icon
22+
*/
23+
void setShowLockIcon( bool visible );
24+
25+
/** Returns if a lock icon shall be shown on the left of the widget
26+
*/
27+
bool showLockIcon() const;
28+
};

0 commit comments

Comments
 (0)
Please sign in to comment.