pqLinkedObjectQTextEdit implements the pqLinkedObjectInterface for a QTextEdit More...
#include <pqLinkedObjectQTextEdit.h>
Public Member Functions | |
pqLinkedObjectQTextEdit ()=delete | |
Default constructor is deleted. More... | |
pqLinkedObjectQTextEdit (QTextEdit &textEdit) noexcept | |
Constructor that takes the QTextEdit as parameter. More... | |
pqLinkedObjectQTextEdit (const pqLinkedObjectQTextEdit &other) noexcept | |
Copy constructor. More... | |
~pqLinkedObjectQTextEdit () noexcept override | |
Destructor that unlink this object on deletion. More... | |
std::unique_ptr< pqLinkedObjectInterface > | clone () const override |
Constructs a new instance of pqLinkedObjectQTextEdit using the default copy constructor of this class. More... | |
void | link (pqLinkedObjectInterface *other) override |
Link this object to the other. More... | |
void | unlink () override |
Unlink this object with the other. More... | |
void | setText (const QString &txt) override |
See pqLinkedObjectInterface::setText. More... | |
QString | getText () const override |
See pqLinkedObjectInterface::getText. More... | |
QObject * | getLinked () const noexcept override |
See pqLinkedObjectInterface::getLinked. More... | |
QString | getName () const override |
See pqLinkedObjectInterface::getName. More... | |
Public Member Functions inherited from pqLinkedObjectInterface | |
pqLinkedObjectInterface ()=default | |
Default constructor. More... | |
pqLinkedObjectInterface (const pqLinkedObjectInterface &)=default | |
Copy constructor needed for the clone method. More... | |
virtual | ~pqLinkedObjectInterface () noexcept=default |
Default virtual destructor. More... | |
bool | isLinked () const noexcept |
Returns true if this object is connected to another one. More... | |
Public Attributes | |
QTextEdit & | TextEdit |
Additional Inherited Members | |
Public Types inherited from pqLinkedObjectInterface | |
enum | QtSignalState : bool { QtSignalState::On = true, QtSignalState::Off = false } |
Used to trigger on and off an object signal. More... | |
Protected Attributes inherited from pqLinkedObjectInterface | |
pqLinkedObjectInterface * | ConnectedTo = nullptr |
QMetaObject::Connection | Connection |
bool | SettingText = false |
pqLinkedObjectQTextEdit implements the pqLinkedObjectInterface for a QTextEdit
Definition at line 16 of file pqLinkedObjectQTextEdit.h.
|
delete |
Default constructor is deleted.
|
inlineexplicitnoexcept |
Constructor that takes the QTextEdit as parameter.
Definition at line 26 of file pqLinkedObjectQTextEdit.h.
|
inlineexplicitnoexcept |
Copy constructor.
Do link the other object to this one if it exists
Definition at line 34 of file pqLinkedObjectQTextEdit.h.
|
inlineoverridenoexcept |
Destructor that unlink this object on deletion.
Definition at line 47 of file pqLinkedObjectQTextEdit.h.
|
inlineoverridevirtual |
Constructs a new instance of pqLinkedObjectQTextEdit using the default copy constructor of this class.
Implements pqLinkedObjectInterface.
Reimplemented in pqLinkedObjectPythonTextArea.
Definition at line 53 of file pqLinkedObjectQTextEdit.h.
|
overridevirtual |
Link this object to the other.
Note that the link is established if and only if the given pqLinkedObjectInterface is not nullptr.
Implements pqLinkedObjectInterface.
Reimplemented in pqLinkedObjectPythonTextArea.
|
overridevirtual |
Unlink this object with the other.
Implements pqLinkedObjectInterface.
|
overridevirtual |
See pqLinkedObjectInterface::setText.
Implements pqLinkedObjectInterface.
|
overridevirtual |
See pqLinkedObjectInterface::getText.
Implements pqLinkedObjectInterface.
|
overridevirtualnoexcept |
See pqLinkedObjectInterface::getLinked.
Implements pqLinkedObjectInterface.
|
overridevirtual |
See pqLinkedObjectInterface::getName.
Implements pqLinkedObjectInterface.
QTextEdit& pqLinkedObjectQTextEdit::TextEdit |
Definition at line 89 of file pqLinkedObjectQTextEdit.h.