4#ifndef QABSTRACTITEMMODELTESTER_H
5#define QABSTRACTITEMMODELTESTER_H
7#include <QtCore/QObject>
8#include <QtTest/qttestglobal.h>
9#include <QtCore/QAbstractItemModel>
10#include <QtCore/QVariant>
14#include <QtGui/QColor>
15#include <QtGui/QBrush>
16#include <QtGui/QPixmap>
17#include <QtGui/QImage>
49 FailureReportingMode failureReportingMode()
const;
50 void setUseFetchMore(
bool value);
54 bool verify(
bool statement,
const char *statementStr,
const char *description,
const char *
file,
int line);
62#define MODELTESTER_VERIFY(statement) \
64 if (!tester->verify(static_cast<bool>(statement), #statement, "", __FILE__, __LINE__)) \
71 if (!
model->hasChildren())
99#undef MODELTESTER_VERIFY
The QAbstractItemModelTester class helps testing QAbstractItemModel subclasses.
QAbstractItemModel * model() const
Returns the model that this instance is testing.
FailureReportingMode
This enumeration specifies how QAbstractItemModelTester should report a failure when it tests a QAbst...
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Returns the index of the data in row and column with parent.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QIcon class provides scalable icons in different modes and states.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
QVariant data(const QModelIndex &item, int role=Qt::DisplayRole) const override
Returns the value for the specified item and role.
bool isValid() const
Returns true if the storage type of this variant is not QMetaType::UnknownType; otherwise returns fal...
bool canConvert(QMetaType targetType) const
Combined button and popup list for selecting options.
bool testDataGuiRoles(QAbstractItemModelTester *tester)
#define MODELTESTER_VERIFY(statement)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define QT_REQUIRE_CONFIG(feature)
QSqlQueryModel * model
[16]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent