24QgsProcessingFavoriteAlgorithmManager::QgsProcessingFavoriteAlgorithmManager( QObject *parent )
27 mFavoriteAlgorithmIds = QgsProcessingFavoriteAlgorithmManager::settingsFavoriteAlgorithms->
value();
30QStringList QgsProcessingFavoriteAlgorithmManager::favoriteAlgorithmIds()
const
32 return mFavoriteAlgorithmIds;
35void QgsProcessingFavoriteAlgorithmManager::add(
const QString &
id )
37 if ( mFavoriteAlgorithmIds.contains(
id ) )
42 mFavoriteAlgorithmIds << id;
43 QgsProcessingFavoriteAlgorithmManager::settingsFavoriteAlgorithms->
setValue( mFavoriteAlgorithmIds );
47void QgsProcessingFavoriteAlgorithmManager::remove(
const QString &
id )
49 if ( !mFavoriteAlgorithmIds.contains(
id ) )
54 mFavoriteAlgorithmIds.removeAll(
id );
55 QgsProcessingFavoriteAlgorithmManager::settingsFavoriteAlgorithms->
setValue( mFavoriteAlgorithmIds );
59void QgsProcessingFavoriteAlgorithmManager::clear()
61 mFavoriteAlgorithmIds.clear();
62 QgsProcessingFavoriteAlgorithmManager::settingsFavoriteAlgorithms->
setValue( mFavoriteAlgorithmIds );
66bool QgsProcessingFavoriteAlgorithmManager::isFavorite(
const QString &
id )
68 return mFavoriteAlgorithmIds.contains(
id );
T value(const QString &dynamicKeyPart=QString()) const
Returns settings value.
bool setValue(const T &value, const QString &dynamicKeyPart=QString()) const
Set settings value.
A string list settings entry.
static QgsSettingsTreeNode * sTreeProcessing