KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KDDockWidgets::Core::ViewGuard Class Reference

This class provides a weak reference to a view i.e., it becomes null automatically once a View is destroyed. More...

#include <ViewGuard.h>

Public Member Functions

 ViewGuard (const ViewGuard &)
 
 ViewGuard (View *v)
 
 ~ViewGuard ()
 
void clear ()
 
bool isNull () const
 
 operator bool () const
 
Viewoperator-> ()
 
const Viewoperator-> () const
 
ViewGuardoperator= (const ViewGuard &)
 
ViewGuardoperator= (View *)
 
Viewview () const
 

Detailed Description

This class provides a weak reference to a view i.e., it becomes null automatically once a View is destroyed.

Definition at line 26 of file ViewGuard.h.

Constructor & Destructor Documentation

◆ ViewGuard() [1/2]

ViewGuard::ViewGuard ( View v)

Definition at line 19 of file ViewGuard.cpp.

References view().

◆ ViewGuard() [2/2]

ViewGuard::ViewGuard ( const ViewGuard other)

Definition at line 24 of file ViewGuard.cpp.

References view().

◆ ~ViewGuard()

ViewGuard::~ViewGuard ( )

Definition at line 29 of file ViewGuard.cpp.

References clear().

Member Function Documentation

◆ clear()

void ViewGuard::clear ( )

Definition at line 54 of file ViewGuard.cpp.

References KDBindings::ConnectionHandle::disconnect().

Referenced by ~ViewGuard().

◆ isNull()

bool ViewGuard::isNull ( ) const

Definition at line 39 of file ViewGuard.cpp.

◆ operator bool()

ViewGuard::operator bool ( ) const

Definition at line 34 of file ViewGuard.cpp.

◆ operator->() [1/2]

View * ViewGuard::operator-> ( )

Definition at line 44 of file ViewGuard.cpp.

◆ operator->() [2/2]

const View * ViewGuard::operator-> ( ) const

Definition at line 49 of file ViewGuard.cpp.

◆ operator=() [1/2]

ViewGuard & ViewGuard::operator= ( const ViewGuard other)

Definition at line 71 of file ViewGuard.cpp.

References view().

◆ operator=() [2/2]

ViewGuard & ViewGuard::operator= ( View view)

Definition at line 65 of file ViewGuard.cpp.

References view().

◆ view()

View * ViewGuard::view ( ) const

Definition at line 60 of file ViewGuard.cpp.

Referenced by ViewGuard(), ViewGuard(), operator=(), and operator=().


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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8