![]() |
Qt 6.x
The Qt SDK
|
#include <qtexttable_p.h>
Static Public Member Functions | |
static QTextTable * | createTable (QTextDocumentPrivate *, int pos, int rows, int cols, const QTextTableFormat &tableFormat) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Definition at line 26 of file qtexttable_p.h.
|
inline |
Definition at line 30 of file qtexttable_p.h.
|
static |
Definition at line 287 of file qtexttable.cpp.
References QTextDocumentPrivate::beginEditBlock(), QTextDocumentPrivate::createObject(), d, QTextDocumentPrivate::endEditBlock(), fmt, QTextDocumentPrivate::formatCollection(), i, QTextFormatCollection::indexForFormat(), QTextDocumentPrivate::insertBlock(), QTextObjectPrivate::pieceTable, pos, Q_ASSERT, QTextBeginningOfFrame, QTextEndOfFrame, QTextFormat::setObjectIndex(), QTextFormat::setObjectType(), and QTextFormat::TableCellObject.
Referenced by QTextCursor::insertTable().
int QTextTablePrivate::findCellIndex | ( | int | fragment | ) | const |
Definition at line 349 of file qtexttable.cpp.
References cells, QList< T >::constBegin(), QList< T >::constEnd(), QTextDocumentPrivate::fragmentMap(), it, QTextObjectPrivate::pieceTable, and QFragmentMap< Fragment >::position().
Referenced by QTextTableCell::column(), QTextTableCell::lastPosition(), and QTextTableCell::row().
Reimplemented from QTextFramePrivate.
Definition at line 359 of file qtexttable.cpp.
References QList< T >::begin(), blockFragmentUpdates, cells, dirty, QList< T >::end(), QTextFramePrivate::fragment_start, QTextFramePrivate::fragmentAdded(), QTextDocumentPrivate::fragmentMap(), QListSpecialMethodsBase< T >::indexOf(), QList< T >::insert(), it, QTextObjectPrivate::pieceTable, pos, position(), QFragmentMap< Fragment >::position(), Q_ASSERT, and QTextBeginningOfFrame.
Reimplemented from QTextFramePrivate.
Definition at line 377 of file qtexttable.cpp.
References QList< T >::at(), blockFragmentUpdates, cells, dirty, QTextFramePrivate::fragment_start, QTextFramePrivate::fragmentRemoved(), QListSpecialMethodsBase< T >::indexOf(), Q_ASSERT, QTextBeginningOfFrame, QList< T >::removeAll(), and QList< T >::size().
void QTextTablePrivate::update | ( | ) | const |
/fn void QTextTablePrivate::update() const
This function is usually called when the table is "dirty". It seems to update all kind of table information.
Definition at line 401 of file qtexttable.cpp.
References QList< T >::at(), cellIndices, cells, dirty, fmt, grid, i, nCols, nRows, QTextObjectPrivate::pieceTable, Q_ASSERT, QList< T >::resize(), and QList< T >::size().
Referenced by QTextTableCell::column(), and QTextTableCell::row().
bool QTextTablePrivate::blockFragmentUpdates |
Definition at line 48 of file qtexttable_p.h.
Referenced by fragmentAdded(), and fragmentRemoved().
|
mutable |
Definition at line 43 of file qtexttable_p.h.
Referenced by QTextTableCell::column(), QTextTableCell::row(), and update().
QList<int> QTextTablePrivate::cells |
Definition at line 40 of file qtexttable_p.h.
Referenced by findCellIndex(), fragmentAdded(), fragmentRemoved(), QTextTableCell::lastPosition(), and update().
|
mutable |
Definition at line 47 of file qtexttable_p.h.
Referenced by QTextTableCell::column(), fragmentAdded(), fragmentRemoved(), QTextTableCell::row(), and update().
|
mutable |
Definition at line 44 of file qtexttable_p.h.
Referenced by update().
|
mutable |
Definition at line 46 of file qtexttable_p.h.
Referenced by QTextTableCell::column(), QTextTableCell::row(), and update().
|
mutable |
Definition at line 45 of file qtexttable_p.h.
Referenced by update().