Qt 4.8
Public Functions | Public Variables | List of all members
QDeclarativeReplaceSignalHandler Class Reference
Inheritance diagram for QDeclarativeReplaceSignalHandler:
QDeclarativeActionEvent

Public Functions

virtual void copyOriginals (QDeclarativeActionEvent *other)
 
virtual void execute (Reason)
 
virtual bool isReversable ()
 
virtual bool needsCopy ()
 
virtual bool override (QDeclarativeActionEvent *other)
 
 QDeclarativeReplaceSignalHandler ()
 
virtual void reverse (Reason)
 
virtual void rewind ()
 
virtual void saveCurrentValues ()
 
virtual void saveOriginals ()
 
virtual QString typeName () const
 
 ~QDeclarativeReplaceSignalHandler ()
 
- Public Functions inherited from QDeclarativeActionEvent
virtual bool changesBindings ()
 
virtual void clearBindings ()
 
virtual bool isRewindable ()
 
virtual void saveTargetValues ()
 
virtual ~QDeclarativeActionEvent ()
 

Public Variables

QDeclarativeExpressionexpression
 
QDeclarativeGuard< QDeclarativeExpressionownedExpression
 
QDeclarativeProperty property
 
QDeclarativeExpressionreverseExpression
 
QDeclarativeExpressionrewindExpression
 

Additional Inherited Members

- Public Types inherited from QDeclarativeActionEvent
enum  Reason { ActualChange, FastForward }
 

Detailed Description

Definition at line 145 of file qdeclarativepropertychanges.cpp.

Constructors and Destructors

◆ QDeclarativeReplaceSignalHandler()

QDeclarativeReplaceSignalHandler::QDeclarativeReplaceSignalHandler ( )
inline

◆ ~QDeclarativeReplaceSignalHandler()

QDeclarativeReplaceSignalHandler::~QDeclarativeReplaceSignalHandler ( )
inline

Definition at line 150 of file qdeclarativepropertychanges.cpp.

150  {
151  delete ownedExpression;
152  }
QDeclarativeGuard< QDeclarativeExpression > ownedExpression

Functions

◆ copyOriginals()

virtual void QDeclarativeReplaceSignalHandler::copyOriginals ( QDeclarativeActionEvent other)
inlinevirtual

Reimplemented from QDeclarativeActionEvent.

Definition at line 181 of file qdeclarativepropertychanges.cpp.

182  {
185  if (rsh == this)
186  return;
188  if (rsh->ownedExpression == reverseExpression) {
190  rsh->ownedExpression = 0;
191  }
192  }
QDeclarativeGuard< QDeclarativeExpression > ownedExpression

◆ execute()

virtual void QDeclarativeReplaceSignalHandler::execute ( Reason  )
inlinevirtual

Reimplemented from QDeclarativeActionEvent.

Definition at line 162 of file qdeclarativepropertychanges.cpp.

162  {
165  ownedExpression = 0;
166  }
QDeclarativeGuard< QDeclarativeExpression > ownedExpression
static QDeclarativeExpression * setSignalExpression(const QDeclarativeProperty &that, QDeclarativeExpression *)
Set the signal expression associated with this signal property to expr.

◆ isReversable()

virtual bool QDeclarativeReplaceSignalHandler::isReversable ( )
inlinevirtual

Reimplemented from QDeclarativeActionEvent.

Definition at line 168 of file qdeclarativepropertychanges.cpp.

168 { return true; }

◆ needsCopy()

virtual bool QDeclarativeReplaceSignalHandler::needsCopy ( )
inlinevirtual

Reimplemented from QDeclarativeActionEvent.

Definition at line 180 of file qdeclarativepropertychanges.cpp.

180 { return true; }

◆ override()

virtual bool QDeclarativeReplaceSignalHandler::override ( QDeclarativeActionEvent other)
inlinevirtual

Reimplemented from QDeclarativeActionEvent.

Definition at line 203 of file qdeclarativepropertychanges.cpp.

203  {
204  if (other == this)
205  return true;
206  if (other->typeName() != typeName())
207  return false;
208  if (static_cast<QDeclarativeReplaceSignalHandler*>(other)->property == property)
209  return true;
210  return false;
211  }
virtual QString typeName() const

◆ reverse()

virtual void QDeclarativeReplaceSignalHandler::reverse ( Reason  )
inlinevirtual

Reimplemented from QDeclarativeActionEvent.

Definition at line 169 of file qdeclarativepropertychanges.cpp.

169  {
172  ownedExpression = 0;
173  }
QDeclarativeGuard< QDeclarativeExpression > ownedExpression
static QDeclarativeExpression * setSignalExpression(const QDeclarativeProperty &that, QDeclarativeExpression *)
Set the signal expression associated with this signal property to expr.

◆ rewind()

virtual void QDeclarativeReplaceSignalHandler::rewind ( )
inlinevirtual

Reimplemented from QDeclarativeActionEvent.

Definition at line 194 of file qdeclarativepropertychanges.cpp.

194  {
197  ownedExpression = 0;
198  }
QDeclarativeGuard< QDeclarativeExpression > ownedExpression
static QDeclarativeExpression * setSignalExpression(const QDeclarativeProperty &that, QDeclarativeExpression *)
Set the signal expression associated with this signal property to expr.

◆ saveCurrentValues()

virtual void QDeclarativeReplaceSignalHandler::saveCurrentValues ( )
inlinevirtual

Reimplemented from QDeclarativeActionEvent.

Definition at line 199 of file qdeclarativepropertychanges.cpp.

Referenced by copyOriginals(), and saveOriginals().

199  {
201  }
static QDeclarativeExpression * signalExpression(const QDeclarativeProperty &that)
Returns the expression associated with this signal property, or 0 if no signal expression exists...

◆ saveOriginals()

virtual void QDeclarativeReplaceSignalHandler::saveOriginals ( )
inlinevirtual

◆ typeName()

virtual QString QDeclarativeReplaceSignalHandler::typeName ( ) const
inlinevirtual

Reimplemented from QDeclarativeActionEvent.

Definition at line 154 of file qdeclarativepropertychanges.cpp.

Referenced by override().

154 { return QLatin1String("ReplaceSignalHandler"); }
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString

Properties

◆ expression

QDeclarativeExpression* QDeclarativeReplaceSignalHandler::expression

◆ ownedExpression

QDeclarativeGuard<QDeclarativeExpression> QDeclarativeReplaceSignalHandler::ownedExpression

◆ property

QDeclarativeProperty QDeclarativeReplaceSignalHandler::property

◆ reverseExpression

QDeclarativeExpression* QDeclarativeReplaceSignalHandler::reverseExpression

Definition at line 158 of file qdeclarativepropertychanges.cpp.

Referenced by copyOriginals().

◆ rewindExpression

QDeclarativeExpression* QDeclarativeReplaceSignalHandler::rewindExpression

Definition at line 159 of file qdeclarativepropertychanges.cpp.

Referenced by saveOriginals().


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