#include <jobpropertyitemnodes.h>
Public Slots | |
void | set (const QString &property) |
Signals | |
void | itemChanged (const QString &) |
Public Member Functions | |
JobPropertyItemNodeProperty (JobPropertyModel *model, JobPropertyItemNode *parent=0) | |
virtual | ~JobPropertyItemNodeProperty () |
virtual bool | setData (int column, const QVariant &value) |
virtual void | createCustomContextMenu (QWidget *parent, const QPoint &pos) |
virtual QWidget * | createEditor (QWidget *parent, const QObject *target, const char *receiver) const |
virtual void | updateEditorContents (QWidget *editor) |
virtual void | updateValue (QWidget *editor) |
QString | toString () |
La classe
Definition at line 91 of file jobpropertyitemnodes.h.
JobPropertyItemNodeProperty::JobPropertyItemNodeProperty | ( | JobPropertyModel * | model, | |
JobPropertyItemNode * | parent = 0 | |||
) |
Construct a JobPropertyItemNodeProperty
model | the model this property is in | |
parent | parent of this item |
Definition at line 426 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::_name, JobPropertyItem::data(), JobPropertyItem::itemData, JobPropertyItem::parentItem, and JobPropertyItem::setHaveContextMenu().
JobPropertyItemNodeProperty::~JobPropertyItemNodeProperty | ( | ) | [virtual] |
Destroy this item and its children
Definition at line 441 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::childItems.
bool JobPropertyItemNodeProperty::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 452 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::itemData.
void JobPropertyItemNodeProperty::createCustomContextMenu | ( | QWidget * | parent, | |
const QPoint & | pos | |||
) | [virtual] |
Create a custom context menu.
parent | parent widget | |
pos | position where the context menu was requested |
Reimplemented from JobPropertyItem.
Definition at line 531 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::_model, JobPropertyItem::childNumber(), JobPropertyItem::getSelfIndex(), and JobPropertyItem::parentItem.
QWidget * JobPropertyItemNodeProperty::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 468 of file jobpropertyitemnodes.cpp.
void JobPropertyItemNodeProperty::updateEditorContents | ( | QWidget * | editor | ) | [virtual] |
Update the content of the editor
editor | the editor widget |
Implements JobPropertyItem.
Definition at line 481 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::itemData.
void JobPropertyItemNodeProperty::updateValue | ( | QWidget * | editor | ) | [virtual] |
Update the value of the item from the editor
editor | the editor widget |
Implements JobPropertyItem.
Definition at line 493 of file jobpropertyitemnodes.cpp.
References itemChanged(), JobPropertyItem::itemData, and JobPropertyItem::jobPropertyChanged().
QString JobPropertyItemNodeProperty::toString | ( | ) |
Convert the item value to a string
Definition at line 520 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::itemData.
void JobPropertyItemNodeProperty::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 510 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::itemData.
Referenced by JobPropertyItemNode::set().
void JobPropertyItemNodeProperty::itemChanged | ( | const QString & | ) | [signal] |
Signal emitted when the item has changed
Referenced by updateValue().