KDDockWidgets API Documentation 2.1
|
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 | |
View * | operator-> () |
const View * | operator-> () const |
ViewGuard & | operator= (const ViewGuard &) |
ViewGuard & | operator= (View *) |
View * | view () const |
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.
ViewGuard::ViewGuard | ( | View * | v | ) |
Definition at line 19 of file ViewGuard.cpp.
References view().
ViewGuard::ViewGuard | ( | const ViewGuard & | other | ) |
Definition at line 24 of file ViewGuard.cpp.
References view().
ViewGuard::~ViewGuard | ( | ) |
Definition at line 29 of file ViewGuard.cpp.
References clear().
void ViewGuard::clear | ( | ) |
Definition at line 54 of file ViewGuard.cpp.
References KDBindings::ConnectionHandle::disconnect().
Referenced by ~ViewGuard().
bool ViewGuard::isNull | ( | ) | const |
Definition at line 39 of file ViewGuard.cpp.
ViewGuard::operator bool | ( | ) | const |
Definition at line 34 of file ViewGuard.cpp.
View * ViewGuard::operator-> | ( | ) |
Definition at line 44 of file ViewGuard.cpp.
const View * ViewGuard::operator-> | ( | ) | const |
Definition at line 49 of file ViewGuard.cpp.
Definition at line 71 of file ViewGuard.cpp.
References view().
Definition at line 65 of file ViewGuard.cpp.
References view().
View * ViewGuard::view | ( | ) | const |
Definition at line 60 of file ViewGuard.cpp.
Referenced by ViewGuard(), ViewGuard(), operator=(), and operator=().