Changeset View
Changeset View
Standalone View
Standalone View
src/kexiutils/utils.h
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | |||||
130 | KEXIUTILS_EXPORT QList<QMetaProperty> propertiesForMetaObject( | 130 | KEXIUTILS_EXPORT QList<QMetaProperty> propertiesForMetaObject( | ||
131 | const QMetaObject *metaObject); | 131 | const QMetaObject *metaObject); | ||
132 | 132 | | |||
133 | //! \return a list with all this class's properties including thise inherited. | 133 | //! \return a list with all this class's properties including thise inherited. | ||
134 | KEXIUTILS_EXPORT QList<QMetaProperty> propertiesForMetaObjectWithInherited( | 134 | KEXIUTILS_EXPORT QList<QMetaProperty> propertiesForMetaObjectWithInherited( | ||
135 | const QMetaObject *metaObject); | 135 | const QMetaObject *metaObject); | ||
136 | 136 | | |||
137 | //! \return a list of enum keys for meta property \a metaProperty. | 137 | //! \return a list of enum keys for meta property \a metaProperty. | ||
138 | KEXIUTILS_EXPORT QStringList enumKeysForProperty(const QMetaProperty& metaProperty); | 138 | //! If @a filter is not INT_MIN, the method only returns enum keys that overlap with filter | ||
139 | //! and are not combination of other keys. | ||||
140 | KEXIUTILS_EXPORT QStringList enumKeysForProperty(const QMetaProperty &metaProperty, | ||||
141 | int filter = INT_MIN); | ||||
139 | 142 | | |||
140 | //! Convert a list @a list of @a SourceType type to another list of @a DestinationType | 143 | //! Convert a list @a list of @a SourceType type to another list of @a DestinationType | ||
141 | //! type using @a convertMethod function | 144 | //! type using @a convertMethod function | ||
142 | /*! | 145 | /*! | ||
143 | Example: | 146 | Example: | ||
144 | @code | 147 | @code | ||
145 | QList<QByteArray> list = ....; | 148 | QList<QByteArray> list = ....; | ||
146 | QStringList result = KexiUtils::convertTypesUsingFunction<QByteArray, QString, &QString::fromLatin1>(list); | 149 | QStringList result = KexiUtils::convertTypesUsingFunction<QByteArray, QString, &QString::fromLatin1>(list); | ||
▲ Show 20 Lines • Show All 490 Lines • Show Last 20 Lines |