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

Public Functions

void detectCheckedButton ()
 
void notifyChecked (QAbstractButton *button)
 
 QButtonGroupPrivate ()
 
- 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< QAbstractButton * > buttonList
 
QPointer< QAbstractButtoncheckedButton
 
bool exclusive
 
QMap< QAbstractButton *, int > mapping
 
- 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 **)
 
- 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 184 of file qabstractbutton.cpp.

Constructors and Destructors

◆ QButtonGroupPrivate()

QButtonGroupPrivate::QButtonGroupPrivate ( )
inline

Definition at line 189 of file qabstractbutton.cpp.

189 :exclusive(true){}

Functions

◆ detectCheckedButton()

void QButtonGroupPrivate::detectCheckedButton ( )

Definition at line 304 of file qabstractbutton.cpp.

305 {
306  QAbstractButton *previous = checkedButton;
307  checkedButton = 0;
308  if (exclusive)
309  return;
310  for (int i = 0; i < buttonList.count(); i++) {
311  if (buttonList.at(i) != previous && buttonList.at(i)->isChecked()) {
313  return;
314  }
315  }
316 }
The QAbstractButton class is the abstract base class of button widgets, providing functionality commo...
bool isChecked() const
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
QPointer< QAbstractButton > checkedButton
QList< QAbstractButton * > buttonList

◆ notifyChecked()

void QButtonGroupPrivate::notifyChecked ( QAbstractButton button)

Properties

◆ buttonList

QList<QAbstractButton *> QButtonGroupPrivate::buttonList

Definition at line 190 of file qabstractbutton.cpp.

◆ checkedButton

QPointer<QAbstractButton> QButtonGroupPrivate::checkedButton

Definition at line 191 of file qabstractbutton.cpp.

◆ exclusive

bool QButtonGroupPrivate::exclusive

Definition at line 194 of file qabstractbutton.cpp.

◆ mapping

QMap<QAbstractButton*, int> QButtonGroupPrivate::mapping

Definition at line 195 of file qabstractbutton.cpp.


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