Skip to content
Permalink
Browse files

add SIP bindings

  • Loading branch information
alexbruy committed Mar 14, 2017
1 parent 9e41b82 commit a537c0c052142c67c4894508c628b35801bbb22c
Showing with 29 additions and 0 deletions.
  1. +1 −0 python/gui/gui.sip
  2. +28 −0 python/gui/qgspasswordlineedit.sip
@@ -134,6 +134,7 @@
%Include qgsowssourceselect.sip
%Include qgspanelwidget.sip
%Include qgspanelwidgetstack.sip
%Include qgspasswordlineedit.sip
%Include qgspixmaplabel.sip
%Include qgspluginmanagerinterface.sip
%Include qgspresetcolorrampdialog.sip
@@ -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;
};

0 comments on commit a537c0c

Please sign in to comment.
You can’t perform that action at this time.