Skip to content
Permalink
Browse files

setting of reload interval in featurelistcombo

cherry-picket from 13d2586
  • Loading branch information
signedav committed Oct 4, 2018
1 parent f951219 commit 3ffdae10caf88a404c960605ceb35fb7a1c6e3b2
@@ -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 3ffdae1

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