Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
setting of reload interval in featurelistcombo
- Loading branch information
|
@@ -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 ); |
|
|