Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
SlotObjectGuard Struct Reference
+ Collaboration diagram for SlotObjectGuard:

Public Member Functions

 SlotObjectGuard ()=default
 
 SlotObjectGuard (QtPrivate::QSlotObjectBase *slotObject)
 
QtPrivate::QSlotObjectBase const * operator-> () const
 
QtPrivate::QSlotObjectBaseoperator-> ()
 
 ~SlotObjectGuard ()
 

Detailed Description

A small RAII helper for QSlotObjectBase. Calls ref on construction and destroyLastRef in its dtor. Allows construction from a nullptr in which case it does nothing.

Definition at line 3762 of file qobject.cpp.

Constructor & Destructor Documentation

◆ SlotObjectGuard() [1/2]

SlotObjectGuard::SlotObjectGuard ( )
default

◆ SlotObjectGuard() [2/2]

SlotObjectGuard::SlotObjectGuard ( QtPrivate::QSlotObjectBase slotObject)
inlineexplicit

Definition at line 3766 of file qobject.cpp.

References QtPrivate::QSlotObjectBase::ref().

+ Here is the call graph for this function:

◆ ~SlotObjectGuard()

SlotObjectGuard::~SlotObjectGuard ( )
inline

Definition at line 3779 of file qobject.cpp.

Member Function Documentation

◆ operator->() [1/2]

QtPrivate::QSlotObjectBase * SlotObjectGuard::operator-> ( )
inline

Definition at line 3776 of file qobject.cpp.

◆ operator->() [2/2]

QtPrivate::QSlotObjectBase const * SlotObjectGuard::operator-> ( ) const
inline

Definition at line 3773 of file qobject.cpp.


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