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

Public Functions

 QActionGroupPrivate ()
 
- 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
 

Public Variables

QList< QAction * > actions
 
QPointer< QActioncurrent
 
uint enabled: 1
 
uint exclusive: 1
 
uint visible: 1
 
- 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
 

Private Functions

void _q_actionChanged ()
 
void _q_actionHovered ()
 
void _q_actionTriggered ()
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- 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)
 

Detailed Description

Definition at line 53 of file qactiongroup.cpp.

Constructors and Destructors

◆ QActionGroupPrivate()

QActionGroupPrivate::QActionGroupPrivate ( )
inline

Definition at line 57 of file qactiongroup.cpp.

Functions

◆ _q_actionChanged()

void QActionGroupPrivate::_q_actionChanged ( )
private

Definition at line 70 of file qactiongroup.cpp.

71 {
73  QAction *action = qobject_cast<QAction*>(q->sender());
74  Q_ASSERT_X(action != 0, "QWidgetGroup::_q_actionChanged", "internal error");
75  if(exclusive) {
76  if (action->isChecked()) {
77  if (action != current) {
78  if(current)
79  current->setChecked(false);
80  current = action;
81  }
82  } else if (action == current) {
83  current = 0;
84  }
85  }
86 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
QPointer< QAction > current
The QActionGroup class groups actions together.
Definition: qactiongroup.h:57
#define Q_Q(Class)
Definition: qglobal.h:2483
#define Q_ASSERT_X(cond, where, what)
Definition: qglobal.h:1837
void setChecked(bool)
Definition: qaction.cpp:1138
bool isChecked() const
Definition: qaction.cpp:1151
The QAction class provides an abstract user interface action that can be inserted into widgets...
Definition: qaction.h:64

◆ _q_actionHovered()

void QActionGroupPrivate::_q_actionHovered ( )
private

Definition at line 97 of file qactiongroup.cpp.

98 {
100  QAction *action = qobject_cast<QAction*>(q->sender());
101  Q_ASSERT_X(action != 0, "QWidgetGroup::_q_actionHovered", "internal error");
102  emit q->hovered(action);
103 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
The QActionGroup class groups actions together.
Definition: qactiongroup.h:57
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76
#define Q_ASSERT_X(cond, where, what)
Definition: qglobal.h:1837
The QAction class provides an abstract user interface action that can be inserted into widgets...
Definition: qaction.h:64

◆ _q_actionTriggered()

void QActionGroupPrivate::_q_actionTriggered ( )
private

Definition at line 88 of file qactiongroup.cpp.

89 {
91  QAction *action = qobject_cast<QAction*>(q->sender());
92  Q_ASSERT_X(action != 0, "QWidgetGroup::_q_actionTriggered", "internal error");
93  emit q->triggered(action);
94  emit q->selected(action);
95 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
The QActionGroup class groups actions together.
Definition: qactiongroup.h:57
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76
#define Q_ASSERT_X(cond, where, what)
Definition: qglobal.h:1837
The QAction class provides an abstract user interface action that can be inserted into widgets...
Definition: qaction.h:64

Properties

◆ actions

QList<QAction *> QActionGroupPrivate::actions

Definition at line 58 of file qactiongroup.cpp.

◆ current

QPointer<QAction> QActionGroupPrivate::current

Definition at line 59 of file qactiongroup.cpp.

Referenced by _q_actionChanged().

◆ enabled

uint QActionGroupPrivate::enabled

Definition at line 61 of file qactiongroup.cpp.

◆ exclusive

uint QActionGroupPrivate::exclusive

Definition at line 60 of file qactiongroup.cpp.

Referenced by _q_actionChanged().

◆ visible

uint QActionGroupPrivate::visible

Definition at line 62 of file qactiongroup.cpp.


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