add SIP bindings

This commit is contained in:
Alexander Bruy 2017-03-13 21:13:39 +02:00
parent 9e41b8222b
commit a537c0c052
2 changed files with 29 additions and 0 deletions

View File

@ -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

View File

@ -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;
};