Krita Source Code Documentation
Loading...
Searching...
No Matches
AllOpenTypeFeaturesModel::Private Struct Reference

Public Member Functions

bool featureAvailable (const QString &tag) const
 
KoOpenTypeFeatureInfo featureByTag (QLatin1String tag) const
 
void setAvailableTags ()
 

Public Attributes

QStringList allTags
 
QList< KoOpenTypeFeatureInfoavailableFeatures
 
QStringList availableTags
 
KoOpenTypeFeatureInfoFactory factory
 

Detailed Description

Definition at line 256 of file OpenTypeFeatureModel.cpp.

Member Function Documentation

◆ featureAvailable()

bool AllOpenTypeFeaturesModel::Private::featureAvailable ( const QString & tag) const
inline

Definition at line 263 of file OpenTypeFeatureModel.cpp.

263 {
264 return availableTags.contains(tag);
265 }

References availableTags.

◆ featureByTag()

KoOpenTypeFeatureInfo AllOpenTypeFeaturesModel::Private::featureByTag ( QLatin1String tag) const
inline

Definition at line 267 of file OpenTypeFeatureModel.cpp.

267 {
268 Q_FOREACH(KoOpenTypeFeatureInfo feature, availableFeatures) {
269 if (feature.tag == tag) {
270 return feature;
271 break;
272 }
273 }
274
275 return factory.infoByTag(tag);
276 }
KoOpenTypeFeatureInfoFactory factory
QList< KoOpenTypeFeatureInfo > availableFeatures
KoOpenTypeFeatureInfo infoByTag(const QLatin1String &tag) const
infoByTag

References availableFeatures, factory, KoOpenTypeFeatureInfoFactory::infoByTag(), and KoOpenTypeFeatureInfo::tag.

◆ setAvailableTags()

void AllOpenTypeFeaturesModel::Private::setAvailableTags ( )
inline

Definition at line 279 of file OpenTypeFeatureModel.cpp.

279 {
280 QStringList tags;
281 allTags = factory.tags();
282 Q_FOREACH(KoOpenTypeFeatureInfo feature, availableFeatures) {
283 const QString tag = QString::fromLatin1(feature.tag.data(), 4);
284 if (!allTags.contains(tag)) {
285 allTags.append(tag);
286 }
287 tags.append(tag);
288 }
289 availableTags = tags;
290 }

References allTags, availableFeatures, availableTags, factory, KoOpenTypeFeatureInfo::tag, and KoOpenTypeFeatureInfoFactory::tags().

Member Data Documentation

◆ allTags

QStringList AllOpenTypeFeaturesModel::Private::allTags

Definition at line 261 of file OpenTypeFeatureModel.cpp.

◆ availableFeatures

QList<KoOpenTypeFeatureInfo> AllOpenTypeFeaturesModel::Private::availableFeatures

Definition at line 259 of file OpenTypeFeatureModel.cpp.

◆ availableTags

QStringList AllOpenTypeFeaturesModel::Private::availableTags

Definition at line 260 of file OpenTypeFeatureModel.cpp.

◆ factory

KoOpenTypeFeatureInfoFactory AllOpenTypeFeaturesModel::Private::factory

Definition at line 258 of file OpenTypeFeatureModel.cpp.


The documentation for this struct was generated from the following file: