update sip

This commit is contained in:
Denis Rouzaud 2014-05-02 07:42:00 +02:00
parent 5d6ea0fd92
commit 71727ac381
3 changed files with 11 additions and 2 deletions

View File

@ -31,6 +31,9 @@ class QgsFieldComboBox : QComboBox
public slots:
//! set the layer of which the fields are listed
void setLayer( QgsVectorLayer* layer );
//! convenience slot to connect QgsMapLayerComboBox layer signal
void setLayer( QgsMapLayer* layer );
//! setField sets the currently selected field

View File

@ -29,9 +29,15 @@ class QgsFieldExpressionWidget : QWidget
signals:
//! the signal is emitted when the currently selected field changes
void fieldChanged( QString fieldName );
//! fieldChanged signal with indication of the validity of the expression
void fieldChanged( QString fieldName, bool isValid );
public slots:
//! set the layer used to display the fields and expression
void setLayer( QgsVectorLayer* layer );
//! convenience slot to connect QgsMapLayerComboBox layer signal
void setLayer( QgsMapLayer* layer );
//! sets the current field or expression in the widget

View File

@ -47,7 +47,7 @@ class QgsFieldModel : QAbstractItemModel
public slots:
//! set the layer of whch fields are displayed
void setLayer( QgsMapLayer *layer );
void setLayer( QgsVectorLayer *layer );
protected slots:
virtual void updateModel();
@ -56,7 +56,7 @@ class QgsFieldModel : QAbstractItemModel
public:
QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const;
QModelIndex parent( const QModelIndex &child ) const;
int rowCount( const QModelIndex &parent ) const;
int rowCount( const QModelIndex &parent = QModelIndex() ) const;
int columnCount( const QModelIndex &parent ) const;
QVariant data( const QModelIndex &index, int role ) const;