![]() |
Qt 6.x
The Qt SDK
|
Classes | |
struct | Icon |
Static Public Member Functions | |
static QString | replaceNewLine (QString text) |
![]() | |
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) |
Public Attributes | ||
QItemEditorFactory * | f | |
bool | clipPainting | |
QTextLayout | textLayout | |
QTextOption | textOption | |
struct QItemDelegatePrivate::Icon | tmp | |
![]() | ||
ExtraData * | extraData | |
QAtomicPointer< QThreadData > | threadData | |
QAtomicPointer< ConnectionData > | connections | |
union { | ||
QObject * currentChildBeingDeleted | ||
QAbstractDeclarativeData * declarativeData | ||
}; | ||
QAtomicPointer< QtSharedPointer::ExternalRefCountData > | sharedRefcount | |
![]() | ||
QObject * | q_ptr | |
QObject * | parent | |
QObjectList | children | |
uint | isWidget: 1 | |
uint | blockSig: 1 | |
uint | wasDeleted: 1 | |
uint | isDeletingChildren: 1 | |
uint | sendChildEvents: 1 | |
uint | receiveChildEvents: 1 | |
uint | isWindow: 1 | |
uint | deleteLaterCalled: 1 | |
uint | isQuickItem: 1 | |
uint | willBeWidget: 1 | |
uint | wasWidget: 1 | |
uint | unused: 21 | |
QAtomicInt | postedEvents | |
QDynamicMetaObjectData * | metaObject | |
QBindingStorage | bindingStorage | |
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Definition at line 40 of file qitemdelegate.cpp.
|
inline |
Definition at line 45 of file qitemdelegate.cpp.
QRect QItemDelegatePrivate::displayRect | ( | const QModelIndex & | index, |
const QStyleOptionViewItem & | option, | ||
const QRect & | decorationRect, | ||
const QRect & | checkRect | ||
) | const |
Definition at line 92 of file qitemdelegate.cpp.
References QVariant::data(), Qt::DisplayRole, Qt::FontRole, QFont::resolve(), text, textLayoutBounds(), and valueToText().
QSizeF QItemDelegatePrivate::doTextLayout | ( | int | lineWidth | ) | const |
Definition at line 142 of file qitemdelegate.cpp.
References QTextLayout::beginLayout(), QTextLayout::createLine(), QTextLayout::endLayout(), line, qMax(), and textLayout.
Referenced by textLayoutBounds().
|
inline |
Definition at line 47 of file qitemdelegate.cpp.
References QItemEditorFactory::defaultFactory(), and f.
|
inline |
Definition at line 50 of file qitemdelegate.cpp.
References QIcon::Disabled, QIcon::Normal, QIcon::Selected, state, QStyle::State_Enabled, and QStyle::State_Selected.
|
inline |
Definition at line 57 of file qitemdelegate.cpp.
References QIcon::Off, QIcon::On, state, and QStyle::State_Open.
Definition at line 60 of file qitemdelegate.cpp.
References QChar::LineSeparator, QString::replace(), and text.
Referenced by QItemDelegate::drawDisplay(), QItemDelegate::textRectangle(), and QItemDelegate::updateEditorGeometry().
QRect QItemDelegatePrivate::textLayoutBounds | ( | const QStyleOptionViewItem & | option, |
const QRect & | decorationRect, | ||
const QRect & | checkRect | ||
) | const |
Definition at line 109 of file qitemdelegate.cpp.
References doTextLayout(), QRect::isNull(), QStyle::pixelMetric(), QStyle::PM_FocusFrameHMargin, qCeil(), QFIXED_MAX, rect, QApplication::style(), widget, QRect::width(), and wrapText().
Referenced by displayRect().
QString QItemDelegatePrivate::valueToText | ( | const QVariant & | value, |
const QStyleOptionViewItem & | option | ||
) | const |
Definition at line 328 of file qitemdelegate.cpp.
References DBL_DIG, Qt::DisplayRole, and QAbstractItemDelegatePrivate::textForRole().
Referenced by displayRect().
|
inline |
Definition at line 79 of file qitemdelegate.cpp.
bool QItemDelegatePrivate::clipPainting |
Definition at line 69 of file qitemdelegate.cpp.
QItemEditorFactory* QItemDelegatePrivate::f |
Definition at line 68 of file qitemdelegate.cpp.
Referenced by editorFactory().
|
mutable |
Definition at line 76 of file qitemdelegate.cpp.
Referenced by doTextLayout().
|
mutable |
Definition at line 77 of file qitemdelegate.cpp.
struct QItemDelegatePrivate::Icon QItemDelegatePrivate::tmp |