42 #ifndef QSTRINGLISTMODEL_H 43 #define QSTRINGLISTMODEL_H 45 #include <QtCore/qstringlist.h> 46 #include <QtGui/qabstractitemview.h> 54 #ifndef QT_NO_STRINGLISTMODEL 85 #endif // QT_NO_STRINGLISTMODEL 91 #endif // QSTRINGLISTMODEL_H The QVariant class acts like a union for the most common Qt data types.
#define QT_END_NAMESPACE
This macro expands to.
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const =0
Returns the number of rows under the given parent.
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Sets the role data for the item at index to value.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
virtual Qt::DropActions supportedDropActions() const
Returns the drop actions supported by this model.
The QAbstractListModel class provides an abstract model that can be subclassed to create one-dimensio...
The QStringListModel class provides a model that supplies strings to views.
The QObject class is the base class of all Qt objects.
virtual void sort(int column, Qt::SortOrder order=Qt::AscendingOrder)
Sorts the model by column in the given order.
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Returns the item flags for the given index.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStringList class provides a list of strings.
virtual bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
On models that support this, removes count rows starting with the given row under parent parent from ...
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const =0
Returns the data stored under the given role for the item referred to by the index.
virtual bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
On models that support this, inserts count rows into the model before the given row.
The QModelIndex class is used to locate data in a data model.