42 #ifndef QTABLEWIDGET_P_H 43 #define QTABLEWIDGET_P_H 58 #include <private/qabstractitemmodel_p.h> 59 #include <private/qtableview_p.h> 60 #include <private/qwidgetitemdata_p.h> 62 #ifndef QT_NO_TABLEWIDGET 80 {
return (*i1 < *i2); }
87 {
return (*i2 < *i1); }
95 ItemIsHeaderItem = 128
125 void setRowCount(
int rows);
126 void setColumnCount(
int columns);
140 Qt::ItemFlags flags(
const QModelIndex &index)
const;
150 void updateRowIndexes(
QModelIndexList &indexes,
int movedFromRow,
int movedToRow);
158 {
return (row * horizontalHeaderItems.count()) + column; }
161 void clearContents();
173 Qt::DropActions supportedDropActions()
const;
198 void _q_emitItemDoubleClicked(
const QModelIndex &index);
199 void _q_emitItemActivated(
const QModelIndex &index);
220 #endif // QT_NO_TABLEWIDGET 222 #endif // QTABLEWIDGET_P_H The QVariant class acts like a union for the most common Qt data types.
bool operator()(QTableWidgetItem *i1, QTableWidgetItem *i2) const
void setData(const QString &mimetype, const QByteArray &data)
Sets the data associated with the MIME type given by mimeType to the specified data.
void clear()
Removes all the MIME type and data entries in the object.
#define QT_END_NAMESPACE
This macro expands to.
QVector< QTableWidgetItem * > verticalHeaderItems
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Returns the index of the data in row and column with parent.
long tableIndex(int row, int column) const
QByteArray data(const QString &mimetype) const
Returns the data stored in the object in the format described by the MIME type specified by mimeType...
T * qobject_cast(QObject *object)
The QVector class is a template class that provides a dynamic array.
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Returns the index of the data in row and column with parent.
const QTableWidgetItem * prototype
#define QT_BEGIN_NAMESPACE
This macro expands to.
static void sort(T *array, int count, LessThan lessThan)
The QStringList class provides a list of strings.
The QMimeData class provides a container for data that records information about its MIME type...
QVector< QTableWidgetItem * > horizontalHeaderItems
#define Q_DECLARE_PUBLIC(Class)
QObject * parent() const
Returns a pointer to the parent object.
QModelIndexList cachedIndexes
bool operator()(QTableWidgetItem *i1, QTableWidgetItem *i2) const
The QModelIndex class is used to locate data in a data model.
static const KeyPair *const end
QVector< QTableWidgetItem * > tableItems
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
The QAbstractTableModel class provides an abstract model that can be subclassed to create table model...
The QMap class is a template class that provides a skip-list-based dictionary.
The QList class is a template class that provides lists.