Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdesigner_internal::PropertyHelper Class Reference

#include <qdesigner_propertycommand_p.h>

+ Inheritance diagram for qdesigner_internal::PropertyHelper:
+ Collaboration diagram for qdesigner_internal::PropertyHelper:

Public Types

enum  ObjectType { OT_Object , OT_FreeAction , OT_AssociatedAction , OT_Widget }
 
enum  UpdateMask { UpdatePropertyEditor =1 , UpdateObjectInspector =2 }
 
using Value = std::pair<QVariant, bool>
 

Public Member Functions

 PropertyHelper (QObject *object, SpecialProperty specialProperty, QDesignerPropertySheetExtension *sheet, int index)
 
virtual ~PropertyHelper ()=default
 
QObjectobject () const
 
SpecialProperty specialProperty () const
 
virtual Value setValue (QDesignerFormWindowInterface *fw, const QVariant &value, bool changed, quint64 subPropertyMask)
 
Value restoreOldValue (QDesignerFormWindowInterface *fw)
 
Value restoreDefaultValue (QDesignerFormWindowInterface *fw)
 
QVariant oldValue () const
 
void setOldValue (const QVariant &oldValue)
 
unsigned updateMask () const
 
bool canMerge (const PropertyHelper &other) const
 
QDesignerIntegrationintegration (QDesignerFormWindowInterface *fw) const
 

Static Public Member Functions

static void triggerActionChanged (QAction *a)
 

Detailed Description

Definition at line 48 of file qdesigner_propertycommand_p.h.

Member Typedef Documentation

◆ Value

Definition at line 52 of file qdesigner_propertycommand_p.h.

Member Enumeration Documentation

◆ ObjectType

Enumerator
OT_Object 
OT_FreeAction 
OT_AssociatedAction 
OT_Widget 

Definition at line 54 of file qdesigner_propertycommand_p.h.

◆ UpdateMask

Enumerator
UpdatePropertyEditor 
UpdateObjectInspector 

Definition at line 81 of file qdesigner_propertycommand_p.h.

Constructor & Destructor Documentation

◆ PropertyHelper()

qdesigner_internal::PropertyHelper::PropertyHelper ( QObject * object,
SpecialProperty specialProperty,
QDesignerPropertySheetExtension * sheet,
int index )

Definition at line 614 of file qdesigner_propertycommand.cpp.

◆ ~PropertyHelper()

virtual qdesigner_internal::PropertyHelper::~PropertyHelper ( )
virtualdefault

Member Function Documentation

◆ canMerge()

bool qdesigner_internal::PropertyHelper::canMerge ( const PropertyHelper & other) const

Definition at line 726 of file qdesigner_propertycommand.cpp.

◆ integration()

QDesignerIntegration * qdesigner_internal::PropertyHelper::integration ( QDesignerFormWindowInterface * fw) const

Definition at line 642 of file qdesigner_propertycommand.cpp.

◆ object()

QObject * qdesigner_internal::PropertyHelper::object ( ) const
inline

Definition at line 62 of file qdesigner_propertycommand_p.h.

◆ oldValue()

QVariant qdesigner_internal::PropertyHelper::oldValue ( ) const
inline

Definition at line 74 of file qdesigner_propertycommand_p.h.

◆ restoreDefaultValue()

PropertyHelper::Value qdesigner_internal::PropertyHelper::restoreDefaultValue ( QDesignerFormWindowInterface * fw)

Definition at line 881 of file qdesigner_propertycommand.cpp.

◆ restoreOldValue()

PropertyHelper::Value qdesigner_internal::PropertyHelper::restoreOldValue ( QDesignerFormWindowInterface * fw)

Definition at line 852 of file qdesigner_propertycommand.cpp.

◆ setOldValue()

void qdesigner_internal::PropertyHelper::setOldValue ( const QVariant & oldValue)
inline

Definition at line 77 of file qdesigner_propertycommand_p.h.

◆ setValue()

PropertyHelper::Value qdesigner_internal::PropertyHelper::setValue ( QDesignerFormWindowInterface * fw,
const QVariant & value,
bool changed,
quint64 subPropertyMask )
virtual

◆ specialProperty()

SpecialProperty qdesigner_internal::PropertyHelper::specialProperty ( ) const
inline

Definition at line 63 of file qdesigner_propertycommand_p.h.

◆ triggerActionChanged()

void qdesigner_internal::PropertyHelper::triggerActionChanged ( QAction * a)
static

Definition at line 731 of file qdesigner_propertycommand.cpp.

◆ updateMask()

unsigned qdesigner_internal::PropertyHelper::updateMask ( ) const

Definition at line 698 of file qdesigner_propertycommand.cpp.


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