42 #ifndef QDECLARATIVEXMLLISTMODEL_H 43 #define QDECLARATIVEXMLLISTMODEL_H 48 #include <QtCore/qurl.h> 49 #include <QtCore/qstringlist.h> 50 #include <QtScript/qscriptvalue.h> 52 #include <private/qlistmodelinterface_p.h> 95 virtual
int count() const;
96 virtual
QList<
int> roles() const;
102 void setSource(const
QUrl&);
107 QString query() const;
108 void setQuery(const QString&);
110 QString namespaceDeclarations() const;
111 void setNamespaceDeclarations(const QString&);
117 qreal progress()
const;
121 virtual void classBegin();
122 virtual void componentComplete();
126 void progressChanged(
qreal progress);
128 void sourceChanged();
131 void namespaceDeclarationsChanged();
141 void requestFinished();
174 qmlInfo(
this) << tr(
"An XmlRole query must not start with '/'");
177 if (m_query == query)
183 bool isKey()
const {
return m_isKey; }
192 return !m_name.isEmpty() && !m_query.isEmpty();
213 #endif // QDECLARATIVEXMLLISTMODEL_H The QVariant class acts like a union for the most common Qt data types.
#define Q_CLASSINFO(name, value)
This macro associates extra information to the class, which is available using QObject::metaObject()...
#define QT_END_NAMESPACE
This macro expands to.
#define QML_DECLARE_TYPE(TYPE)
QStringList keyRoleResultsCache
QList< QPair< int, int > > inserted
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
static LibLoadStatus status
void setName(const QString &name)
~QDeclarativeXmlListModelRole()
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
The QObject class is the base class of all Qt objects.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
QDeclarativeXmlListModelRole()
static QString toString(Register *reg, int type, bool *ok=0)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void setQuery(const QString &query)
The QDeclarativeParserStatus class provides updates on the QML parser state.
The QStringList class provides a list of strings.
The QListModelInterface class can be subclassed to provide C++ models to QDeclarativeGraphics Views...
#define Q_INTERFACES(x)
This macro tells Qt which interfaces the class implements.
#define Q_AUTOTEST_EXPORT
static const char * get(QDBusError::ErrorType code)
The QDeclarativeContext class defines a context within a QML engine.
#define Q_DECLARE_PRIVATE(Class)
QDeclarativeInfo qmlInfo(const QObject *me)
The QScriptValue class acts as a container for the Qt Script data types.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
The QDeclarativeListProperty class allows applications to expose list-like properties to QML...
The QList class is a template class that provides lists.
QList< QPair< int, int > > removed
QList< QList< QVariant > > data