Skip to content

Commit

Permalink
update sip
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 2, 2014
1 parent 5d6ea0f commit 71727ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions python/gui/qgsfieldcombobox.sip
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions python/gui/qgsfieldexpressionwidget.sip
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions python/gui/qgsfieldmodel.sip
Expand Up @@ -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();
Expand All @@ -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;

Expand Down

0 comments on commit 71727ac

Please sign in to comment.