KOSMIndoorMap
amenitymodel.cpp
103 QString s = QLatin1String(":/org.kde.kosmindoormap/assets/icons/") + entry.icon + QLatin1String(".svg");
123 auto s = Localization::amenityType(type.trimmed().constData(), Localization::ReturnEmptyOnUnknownKey);
146 return Localization::cuisineTypes(entry.element.tagValue("cuisine"), Localization::ReturnEmptyOnUnknownKey);
206 const auto groupIt = std::find_if(std::begin(group_map), std::end(group_map), [&group](const auto &m) { return std::strcmp(m.groupName, group.constData()) == 0; });
256 m_entries.erase(std::unique(m_entries.begin(), m_entries.end(), [](const auto &lhs, const auto &rhs) {
@ FallbackNameRole
Brand/operator/network name, better than nothing but not the first choice to display.
Definition amenitymodel.h:40
Result of MapCSS stylesheet evaluation for all layer selectors.
Definition mapcssresult.h:91
void compile(const OSM::DataSet &dataSet)
Optimizes style sheet rules for application against dataSet.
Definition mapcssstyle.cpp:33
void evaluate(MapCSSState &&state, MapCSSResult &result) const
Evaluates the style sheet for a given state state (OSM element, view state, element state,...
Definition mapcssstyle.cpp:42
bool isEmpty() const
Returns true if this is a default-constructed or otherwise empty/invalud style.
Definition mapcssstyle.cpp:28
TagKey tagKey(const char *keyName) const
Look up a tag key for the given tag name, if it exists.
Definition datatypes.cpp:38
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString cuisineTypes(const QByteArray &value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
Translated values of the cuisine tag (does list splitting).
Definition localization.cpp:21
bool hasAmenityTypeTranslation(const char *value)
Returns true if we can translate value.
Definition localization.cpp:11
QString amenityType(const char *value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
Translated name for an amenity tag value (after list splitting).
Definition localization.cpp:16
OSM-based multi-floor indoor maps for buildings.
Definition locationqueryoverlayproxymodel.h:20
@ FontFamily
the equivalent to CartoCSS's ignore-placement, non-standard extension
Low-level types and functions to work with raw OSM data as efficiently as possible.
Definition locationqueryoverlayproxymodel.h:15
void beginResetModel()
bool checkIndex(const QModelIndex &index, CheckIndexOptions options) const const
void endResetModel()
virtual QHash< int, QByteArray > roleNames() const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
const char * constData() const const
bool isEmpty() const const
bool exists() const const
void push_back(parameter_type value)
QString createSeparatedList(const QStringList &list) const const
int row() const const
Q_EMITQ_EMIT
QObject * parent() const const
QString fromUtf8(QByteArrayView str)
DisplayRole
QTextStream & center(QTextStream &stream)
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:14:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:14:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.