Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QStyledItemDelegatePrivate Class Reference
Inheritance diagram for QStyledItemDelegatePrivate:
QObjectPrivate QObjectData

Public Functions

void _q_commitDataAndCloseEditor (QWidget *editor)
 
const QItemEditorFactoryeditorFactory () const
 
 QStyledItemDelegatePrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Static Public Functions

static const QWidgetwidget (const QStyleOptionViewItem &option)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Public Variables

QItemEditorFactoryfactory
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 

Detailed Description

Definition at line 80 of file qstyleditemdelegate.cpp.

Constructors and Destructors

◆ QStyledItemDelegatePrivate()

QStyledItemDelegatePrivate::QStyledItemDelegatePrivate ( )
inline

Definition at line 85 of file qstyleditemdelegate.cpp.

85 : factory(0) { }

Functions

◆ _q_commitDataAndCloseEditor()

void QStyledItemDelegatePrivate::_q_commitDataAndCloseEditor ( QWidget editor)
inline

Definition at line 99 of file qstyleditemdelegate.cpp.

100  {
102  emit q->commitData(editor);
103  emit q->closeEditor(editor, QAbstractItemDelegate::SubmitModelCache);
104  }
The QStyledItemDelegate class provides display and editing facilities for data items from a model...
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76

◆ editorFactory()

const QItemEditorFactory* QStyledItemDelegatePrivate::editorFactory ( ) const
inline

Definition at line 94 of file qstyleditemdelegate.cpp.

95  {
97  }
static const QItemEditorFactory * defaultFactory()
Returns the default item editor factory.

◆ widget()

static const QWidget* QStyledItemDelegatePrivate::widget ( const QStyleOptionViewItem option)
inlinestatic

Definition at line 87 of file qstyleditemdelegate.cpp.

Referenced by QStyledItemDelegate::editorEvent(), QStyledItemDelegate::paint(), QStyledItemDelegate::sizeHint(), and QStyledItemDelegate::updateEditorGeometry().

88  {
89  if (const QStyleOptionViewItemV3 *v3 = qstyleoption_cast<const QStyleOptionViewItemV3 *>(&option))
90  return v3->widget;
91  return 0;
92  }
The QStyleOptionViewItemV3 class is used to describe the parameters necessary for drawing a frame in ...
Definition: qstyleoption.h:590

Properties

◆ factory

QItemEditorFactory* QStyledItemDelegatePrivate::factory

Definition at line 105 of file qstyleditemdelegate.cpp.

Referenced by editorFactory().


The documentation for this class was generated from the following file: