Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QActionPrivate Class Reference

#include <qaction_p.h>

+ Inheritance diagram for QActionPrivate:
+ Collaboration diagram for QActionPrivate:

Public Member Functions

 QActionPrivate ()
 
 ~QActionPrivate ()
 
virtual void destroy ()
 
bool setEnabled (bool enable, bool byGroup)
 
void setVisible (bool b)
 
virtual QObjectmenu () const
 
virtual void setMenu (QObject *menu)
 
bool showStatusText (QObject *widget, const QString &str)
 
void sendDataChanged ()
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static QActionPrivateget (QAction *q)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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

QPointer< QActionGroupgroup
 
QString text
 
QString iconText
 
QIcon icon
 
QString tooltip
 
QString statustip
 
QString whatsthis
 
QVariant userData
 
QObjectList associatedObjects
 
QFont font
 
uint enabled: 1
 
uint explicitEnabled: 1
 
uint explicitEnabledValue: 1
 
uint visible: 1
 
uint forceInvisible: 1
 
uint checkable: 1
 
uint checked: 1
 
uint separator: 1
 
uint fontSet: 1
 
int iconVisibleInMenu: 2
 
int shortcutVisibleInContextMenu: 2
 
QAction::MenuRole menuRole = QAction::TextHeuristicRole
 
QAction::Priority priority = QAction::NormalPriority
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
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 receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Detailed Description

Definition at line 34 of file qaction_p.h.

Constructor & Destructor Documentation

◆ QActionPrivate()

QActionPrivate::QActionPrivate ( )

Definition at line 46 of file qaction.cpp.

◆ ~QActionPrivate()

QActionPrivate::~QActionPrivate ( )
default

Member Function Documentation

◆ destroy()

void QActionPrivate::destroy ( )
virtual

Reimplemented in QtWidgetsActionPrivate.

Definition at line 67 of file qaction.cpp.

◆ get()

static QActionPrivate * QActionPrivate::get ( QAction * q)
inlinestatic

Definition at line 47 of file qaction_p.h.

Referenced by QToolButton::setDefaultAction().

+ Here is the caller graph for this function:

◆ menu()

QObject * QActionPrivate::menu ( ) const
virtual

Definition at line 134 of file qaction.cpp.

◆ sendDataChanged()

void QActionPrivate::sendDataChanged ( )

Definition at line 71 of file qaction.cpp.

References QEvent::ActionChanged, emit, and QCoreApplication::sendEvent().

Referenced by setEnabled(), and setVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setEnabled()

bool QActionPrivate::setEnabled ( bool enable,
bool byGroup )

Definition at line 938 of file qaction.cpp.

References emit, explicitEnabled, explicitEnabledValue, QGuiApplicationPrivate::instance(), sendDataChanged(), and visible.

Referenced by setVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMenu()

void QActionPrivate::setMenu ( QObject * menu)
virtual

Definition at line 130 of file qaction.cpp.

◆ setVisible()

void QActionPrivate::setVisible ( bool b)

Definition at line 1001 of file qaction.cpp.

References emit, explicitEnabled, explicitEnabledValue, QAPP_CHECK, sendDataChanged(), setEnabled(), and visible.

+ Here is the call graph for this function:

◆ showStatusText()

bool QActionPrivate::showStatusText ( QObject * widget,
const QString & str )

Definition at line 120 of file qaction.cpp.

References QObjectData::parent, QCoreApplication::sendEvent(), and str.

+ Here is the call graph for this function:

Member Data Documentation

◆ associatedObjects

QObjectList QActionPrivate::associatedObjects

◆ checkable

uint QActionPrivate::checkable

Definition at line 79 of file qaction_p.h.

◆ checked

uint QActionPrivate::checked

Definition at line 80 of file qaction_p.h.

◆ enabled

uint QActionPrivate::enabled

Definition at line 77 of file qaction_p.h.

◆ explicitEnabled

uint QActionPrivate::explicitEnabled

Definition at line 77 of file qaction_p.h.

Referenced by setEnabled(), and setVisible().

◆ explicitEnabledValue

uint QActionPrivate::explicitEnabledValue

Definition at line 77 of file qaction_p.h.

Referenced by setEnabled(), and setVisible().

◆ font

QFont QActionPrivate::font

Definition at line 76 of file qaction_p.h.

◆ fontSet

uint QActionPrivate::fontSet

Definition at line 82 of file qaction_p.h.

◆ forceInvisible

uint QActionPrivate::forceInvisible

Definition at line 78 of file qaction_p.h.

◆ group

QPointer<QActionGroup> QActionPrivate::group

Definition at line 55 of file qaction_p.h.

◆ icon

QIcon QActionPrivate::icon

Definition at line 58 of file qaction_p.h.

◆ iconText

QString QActionPrivate::iconText

Definition at line 57 of file qaction_p.h.

◆ iconVisibleInMenu

int QActionPrivate::iconVisibleInMenu

Definition at line 84 of file qaction_p.h.

◆ menuRole

QAction::MenuRole QActionPrivate::menuRole = QAction::TextHeuristicRole

Definition at line 87 of file qaction_p.h.

◆ priority

QAction::Priority QActionPrivate::priority = QAction::NormalPriority

Definition at line 88 of file qaction_p.h.

◆ separator

uint QActionPrivate::separator

Definition at line 81 of file qaction_p.h.

◆ shortcutVisibleInContextMenu

int QActionPrivate::shortcutVisibleInContextMenu

Definition at line 85 of file qaction_p.h.

◆ statustip

QString QActionPrivate::statustip

Definition at line 60 of file qaction_p.h.

◆ text

QString QActionPrivate::text

Definition at line 56 of file qaction_p.h.

◆ tooltip

QString QActionPrivate::tooltip

Definition at line 59 of file qaction_p.h.

◆ userData

QVariant QActionPrivate::userData

Definition at line 65 of file qaction_p.h.

◆ visible

uint QActionPrivate::visible

Definition at line 78 of file qaction_p.h.

Referenced by setEnabled(), and setVisible().

◆ whatsthis

QString QActionPrivate::whatsthis

Definition at line 61 of file qaction_p.h.


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