Skip to content
Permalink
Browse files

setting of reload interval in featurelistcombo

  • Loading branch information
signedav committed Oct 4, 2018
1 parent 0ee119f commit 13d25862630582f29bdc507bba48db3af7ba2aaa
@@ -145,6 +145,11 @@ Add a NULL entry to the list.
void setAllowNull( bool allowNull );
%Docstring
Add a NULL entry to the list.
%End

void setReloadTimerInterval( int interval );
%Docstring
Set the model reload timer interval in milliseconds
%End

signals:
@@ -549,3 +549,8 @@ void QgsFeatureFilterModel::setExtraIdentifierValue( const QVariant &extraIdenti

emit extraIdentifierValueChanged();
}

void QgsFeatureFilterModel::setReloadTimerInterval( int interval )
{
mReloadTimer.setInterval( interval );
}
@@ -178,6 +178,11 @@ class CORE_EXPORT QgsFeatureFilterModel : public QAbstractItemModel
*/
void setAllowNull( bool allowNull );

/**
* Set the model reload timer interval in milliseconds
*/
void setReloadTimerInterval( int interval );

signals:

/**
@@ -33,6 +33,7 @@ QgsFeatureListComboBox::QgsFeatureListComboBox( QWidget *parent )
mCompleter->setFilterMode( Qt::MatchContains );
setCompleter( mCompleter );
mCompleter->setWidget( this );
mModel->setReloadTimerInterval( 1000 );
connect( mModel, &QgsFeatureFilterModel::sourceLayerChanged, this, &QgsFeatureListComboBox::sourceLayerChanged );
connect( mModel, &QgsFeatureFilterModel::displayExpressionChanged, this, &QgsFeatureListComboBox::displayExpressionChanged );
connect( mModel, &QgsFeatureFilterModel::filterExpressionChanged, this, &QgsFeatureListComboBox::filterExpressionChanged );

0 comments on commit 13d2586

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