![]() |
Workspace 6.21.5
|
#include <Workspace/Widgets/qvariantwidgetconnector.h>
Public Member Functions | |
QVariantWidgetConnector (QWidget &widget, const NamePath &namePath) | |
~QVariantWidgetConnector () override | |
void | setWidgetReadOnly (bool b) override |
![]() | |
void | clearAllWidgetPropertyMonitors () |
WidgetPropertyMonitor & | createWidgetPropertyMonitor (const QString &propertyName) |
NamePath & | getNamePath () |
QUuid | getUuid () const |
QWidget & | getWidget () |
bool | setAdaptorFactory (const DataExecution::TypeAdaptorFactory *adaptorFactory) |
virtual void | setWidgetReadOnly (bool b) |
Additional Inherited Members | |
![]() | |
bool | hasOutstandingDataUpdateRequests () const |
void | requestUpdateData () |
void | requestUpdateWidget () |
void | synchronizeWithData () |
![]() | |
void | dataUpdated () |
![]() | |
static QStringList | connectWidgetTree (QWidget &widget, DataExecution::Operation &forOperation) |
static QStringList | connectWidgetTree (QWidget &widget, DataExecution::Operation &forOperation, const std::function< bool(QString)> &isIgnoredGlobalName) |
static QStringList | connectWidgetTree (QWidget &widget, DataExecution::Workspace &relativeTo) |
static QStringList | connectWidgetTree (QWidget &widget, DataExecution::Workspace &relativeTo, const std::function< bool(QString)> &isIgnoredGlobalName) |
![]() | |
virtual void | checkIfWidgetWantsUpdateTriggers () |
virtual void | flushChanges (bool widgetWillRemainAlive=true) |
void | madeUncommittedChange () |
![]() | |
QWidgetConnector (QWidget &widget, const NamePath &namePath, bool directWidgetUpdates=false) | |
~QWidgetConnector () override | |
void | clearUncommittedChanges () |
template<typename T > | |
void | commitData (const T &value) |
bool | haveUncommittedChanges () const |
void | setWantUpdateTriggers (bool b) |
QVariantWidgetConnector | ( | QWidget & | widget, |
const NamePath & | namePath | ||
) |
|
override |
|
overridevirtual |
b | Toggles widget to read only model. |
The Workspace editor calls this function to toggle read only behavior where modification of underlying data has no meaningful effect. Consider the scenario where a widget is attached to an Input which is connected to some other Output in a workflow. Any changes through this widget are lost when the Input is brought up to date because the data type is overwritten by data from the connected output.
The default implementation for this virtual method simply disables the entire widget. This method should be overridden for widgets that require some level of interaction in read only mode.
Reimplemented from QWidgetConnector.