Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqOptionTableItem Class Reference

TxqOptionTableItem is a class to add a QLineEdit widget with a INtValidator to a QTableItem in order to edit a Option integer number. More...

#include <TxqOptionTableItem.h>

Inheritance diagram for TxqOptionTableItem::

TxqTableItem QObject QTableItem TxqOptionVecTableItem List of all members.

Public Methods

 TxqOptionTableItem (QTable *t, EditType e, TxAttributeSet *a, const QString s, const QVariant &v, int r)
 Construct a TxqOptionTableItem given the QTable and EditTye parameters. More...

virtual ~TxqOptionTableItem ()
 The destructor. More...

QWidgetcreateEditor () const
 Create the widget. More...

void setContentFromEditor (QWidget *w)
 Set the content from the editor widget. More...

void setText (const QString &newText)
 Set the new text. More...

virtual void setAttribValue ()
 Public interface to set the attribute value from the class data members. More...


Protected Methods

virtual void setAttribValue (const TXSTD::string name, const int value)
 Set the attribute value. More...


Private Attributes

QGuardedPtr<QSpinBox> spinBox
 The editor widget. More...


Detailed Description

TxqOptionTableItem is a class to add a QLineEdit widget with a INtValidator to a QTableItem in order to edit a Option integer number.

Definition at line 33 of file TxqOptionTableItem.h.


Constructor & Destructor Documentation

TxqOptionTableItem::TxqOptionTableItem ( QTable * t,
EditType e,
TxAttributeSet * a,
const QString s,
const QVariant & v,
int r )
 

Construct a TxqOptionTableItem given the QTable and EditTye parameters.

Parameters:
t   the QTable pointer that this item belong to
e   the type of edit for this item
a   the attribute pointer
s   the attribute name
v   the attribute value
r   the row number for this item

TxqOptionTableItem::~TxqOptionTableItem ( ) [inline, virtual]
 

The destructor.

Definition at line 51 of file TxqOptionTableItem.h.


Member Function Documentation

QWidget * TxqOptionTableItem::createEditor ( ) const
 

Create the widget.

This widget is a QSpingBox and will edit a integer number using a validator.

void TxqOptionTableItem::setAttribValue ( const TXSTD::string name,
const int value ) [protected, virtual]
 

Set the attribute value.

Parameters:
name   the attribute name
value   the value to set

Reimplemented in TxqOptionVecTableItem.

void TxqOptionTableItem::setAttribValue ( ) [virtual]
 

Public interface to set the attribute value from the class data members.

Reimplemented from TxqTableItem.

void TxqOptionTableItem::setContentFromEditor ( QWidget * w )
 

Set the content from the editor widget.

Parameters:
w   the editor widget

void TxqOptionTableItem::setText ( const QString & newText )
 

Set the new text.

Parameters:
newText   the new text


Member Data Documentation

QGuardedPtr< QSpinBox > TxqOptionTableItem::spinBox [private]
 

The editor widget.

Definition at line 90 of file TxqOptionTableItem.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.