#include <jobpropertyitemstring.h>


Public Slots | |
| void | set (const QString &str) | 
Signals | |
| void | itemChanged (const QString &str) | 
Public Member Functions | |
| JobPropertyItemString (JobPropertyModel *model, QString inName, JobPropertyItem *parent=0) | |
| virtual | ~JobPropertyItemString () | 
| virtual bool | setData (int column, const QVariant &value) | 
| virtual QWidget * | createEditor (QWidget *parent, const QObject *target, const char *receiver) const | 
| virtual void | updateEditorContents (QWidget *editor) | 
| virtual void | updateValue (QWidget *editor) | 
| virtual void | setRegExpValidator (QRegExp rx) | 
| virtual QString | toString () | 
Protected Attributes | |
| QRegExp | _rx | 
Definition at line 16 of file jobpropertyitemstring.h.
| JobPropertyItemString::JobPropertyItemString | ( | JobPropertyModel * | model, | |
| QString | inName, | |||
| JobPropertyItem * |  parent = 0 | |||
| ) | 
Construct a JobPropertyItemNodeProperty
| model | the model this property is in | |
| inName | name of this item | |
| parent | parent of this item | 
Definition at line 19 of file jobpropertyitemstring.cpp.
References JobPropertyItem::_name, JobPropertyItem::data(), JobPropertyItem::itemData, and JobPropertyItem::parentItem.

| JobPropertyItemString::~JobPropertyItemString | ( | ) |  [virtual] | 
        
Destroy this item
Definition at line 32 of file jobpropertyitemstring.cpp.
| bool JobPropertyItemString::setData | ( | int | column, | |
| const QVariant & | value | |||
| ) |  [virtual] | 
        
Set the specified data in the specified column
| column | the index of the column where to set the data in | |
| value | value to set | 
Reimplemented from JobPropertyItem.
Definition at line 41 of file jobpropertyitemstring.cpp.
References JobPropertyItem::itemData.
| QWidget * JobPropertyItemString::createEditor | ( | QWidget * | parent, | |
| const QObject * | target, | |||
| const char * | receiver | |||
| ) |  const [virtual] | 
        
Create an editor for this item
| parent | parent widget | |
| target | object to emit a signal to when the value has changed | |
| receiver | method of the target object to connect to | 
Implements JobPropertyItem.
Definition at line 58 of file jobpropertyitemstring.cpp.
References _rx.
| void JobPropertyItemString::updateEditorContents | ( | QWidget * | editor | ) |  [virtual] | 
        
Update the content of the editor
| editor | the editor widget | 
Implements JobPropertyItem.
Definition at line 73 of file jobpropertyitemstring.cpp.
References JobPropertyItem::itemData.
| void JobPropertyItemString::updateValue | ( | QWidget * | editor | ) |  [virtual] | 
        
Update the value of the item from the editor
| editor | the editor widget | 
Implements JobPropertyItem.
Definition at line 85 of file jobpropertyitemstring.cpp.
References itemChanged(), JobPropertyItem::itemData, and JobPropertyItem::jobPropertyChanged().
| void JobPropertyItemString::setRegExpValidator | ( | QRegExp | rx | ) |  [virtual] | 
        
Set a RegExpValidator for this item
| rx | the rexgexp to validate agains | 
Definition at line 118 of file jobpropertyitemstring.cpp.
References _rx.
Referenced by JobPropertyItemNode::JobPropertyItemNode(), JobPropertyItemRoot::JobPropertyItemRoot(), and JobPropertyItemNode::set().
| QString JobPropertyItemString::toString | ( | ) |  [virtual] | 
        
Convert the item value to a string
Definition at line 126 of file jobpropertyitemstring.cpp.
References JobPropertyItem::itemData.
| void JobPropertyItemString::set | ( | const QString & | str | ) |  [slot] | 
        
Set the value of this item
| str | the string to parse to set the value of this item. | 
Definition at line 102 of file jobpropertyitemstring.cpp.
References JobPropertyItem::_model, JobPropertyModel::emitLayoutAboutToBeChanged(), JobPropertyModel::emitLayoutChanged(), and JobPropertyItem::itemData.
Referenced by JobPropertyItemNode::set().
| void JobPropertyItemString::itemChanged | ( | const QString & | str | ) |  [signal] | 
        
Signal emitted when the item has changed
Referenced by updateValue().
QRegExp JobPropertyItemString::_rx [protected]           | 
        
Definition at line 40 of file jobpropertyitemstring.h.
Referenced by createEditor(), and setRegExpValidator().
 1.5.4