summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqtableitem.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqtableitem.3qt')
-rw-r--r--doc/man/man3/tqtableitem.3qt42
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/man/man3/tqtableitem.3qt b/doc/man/man3/tqtableitem.3qt
index 563a3908d..94edc175d 100644
--- a/doc/man/man3/tqtableitem.3qt
+++ b/doc/man/man3/tqtableitem.3qt
@@ -13,7 +13,7 @@ QTableItem \- The cell content for QTable cells
.PP
Inherits Qt.
.PP
-Inherited by QComboTableItem and QCheckTableItem.
+Inherited by TQComboTableItem and TQCheckTableItem.
.PP
.SS "Public Members"
.in +1c
@@ -116,7 +116,7 @@ The QTableItem class provides the cell content for QTable cells.
.PP
For many applications QTableItems are ideal for presenting and editing the contents of QTable cells. In situations where you need to create very large tables you may prefer an alternative approach to using QTableItems: see the notes on large tables.
.PP
-A QTableItem contains a cell's data, by default, a string and a pixmap. The table item also holds the cell's display size and how the data should be aligned. The table item specifies the cell's EditType and the editor used for in-place editing (by default a QLineEdit). If you want checkboxes use QCheckTableItem, and if you want comboboxes use QComboTableItem. The EditType (set in the constructor) determines whether the cell's contents may be edited.
+A QTableItem contains a cell's data, by default, a string and a pixmap. The table item also holds the cell's display size and how the data should be aligned. The table item specifies the cell's EditType and the editor used for in-place editing (by default a TQLineEdit). If you want checkboxes use TQCheckTableItem, and if you want comboboxes use TQComboTableItem. The EditType (set in the constructor) determines whether the cell's contents may be edited.
.PP
If a pixmap is specified it is displayed to the left of any text. You can change the text or pixmap with setText() and setPixmap() respectively. For text you can use setWordWrap().
.PP
@@ -148,9 +148,9 @@ Table items can be deleted with delete in the standard way; the table and cell w
.PP
Note, that if you have a table item that is not currently in a table then anything you do to that item other than insert it into a table will result in undefined behaviour.
.PP
-Reimplement createEditor() and setContentFromEditor() if you want to use your own widget instead of a QLineEdit for editing cell contents. Reimplement paint() if you want to display custom content.
+Reimplement createEditor() and setContentFromEditor() if you want to use your own widget instead of a TQLineEdit for editing cell contents. Reimplement paint() if you want to display custom content.
.PP
-It is important to ensure that your custom widget can accept the keyboard focus, so that the user can use the tab key to navigate the table as normal. Therefore, if the widget returned by createEditor() does not itself accept the keyboard focus, it is necessary to nominate a child widget to do so on its behalf. For example, a QHBox with two child QLineEdit widgets may use one of them to accept the keyboard focus:
+It is important to ensure that your custom widget can accept the keyboard focus, so that the user can use the tab key to navigate the table as normal. Therefore, if the widget returned by createEditor() does not itself accept the keyboard focus, it is necessary to nominate a child widget to do so on its behalf. For example, a QHBox with two child TQLineEdit widgets may use one of them to accept the keyboard focus:
.PP
.nf
.br
@@ -160,9 +160,9 @@ It is important to ensure that your custom widget can accept the keyboard focus,
.br
QHBox* hbox = new QHBox( table()->viewport() );
.br
- hbox->setFocusProxy(new QLineEdit( hbox ));
+ hbox->setFocusProxy(new TQLineEdit( hbox ));
.br
- new QLineEdit( hbox );
+ new TQLineEdit( hbox );
.br
return hbox;
.br
@@ -178,7 +178,7 @@ By default, table items may be replaced by new QTableItems during the lifetime o
.PP
</center>
.PP
-See also QCheckTableItem, QComboTableItem, and Advanced Widgets.
+See also TQCheckTableItem, TQComboTableItem, and Advanced Widgets.
.PP
.SS "Member Type Documentation"
.SH "QTableItem::EditType"
@@ -186,7 +186,7 @@ This enum is used to define whether a cell is editable or read-only (in conjunct
.TP
\fCQTableItem::Always\fR - The cell always \fIlooks\fR editable.
.PP
-Using this EditType ensures that the editor created with createEditor() (by default a QLineEdit) is always visible. This has implications for the alignment of the content: the default editor aligns everything (even numbers) to the left whilst numerical values in the cell are by default aligned to the right.
+Using this EditType ensures that the editor created with createEditor() (by default a TQLineEdit) is always visible. This has implications for the alignment of the content: the default editor aligns everything (even numbers) to the left whilst numerical values in the cell are by default aligned to the right.
.PP
If a cell with the edit type Always looks misaligned you could reimplement createEditor() for these items.
.TP
@@ -200,25 +200,25 @@ The OnTyping edit type is the default when QTableItem objects are created by the
.PP
The cell is actually editable only if QTable::isRowReadOnly() is FALSE for its row, QTable::isColumnReadOnly() is FALSE for its column, and QTable::isReadOnly() is FALSE.
.PP
-QComboTableItems have an isEditable() property. This property is used to indicate whether the user may enter their own text or are restricted to choosing one of the choices in the list. QComboTableItems may be interacted with only if they are editable in accordance with their EditType as described above.
+TQComboTableItems have an isEditable() property. This property is used to indicate whether the user may enter their own text or are restricted to choosing one of the choices in the list. TQComboTableItems may be interacted with only if they are editable in accordance with their EditType as described above.
.PP
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QTableItem::QTableItem ( QTable * table, EditType et )"
Creates a table item that is a child of table \fItable\fR with no text. The item has the EditType \fIet\fR.
.PP
-The table item will use a QLineEdit for its editor, will not word-wrap and will occupy a single cell. Insert the table item into a table with QTable::setItem().
+The table item will use a TQLineEdit for its editor, will not word-wrap and will occupy a single cell. Insert the table item into a table with QTable::setItem().
.PP
The table takes ownership of the table item, so a table item should not be inserted into more than one table at a time.
.SH "QTableItem::QTableItem ( QTable * table, EditType et, const TQString & text )"
Creates a table item that is a child of table \fItable\fR with text \fItext\fR. The item has the EditType \fIet\fR.
.PP
-The table item will use a QLineEdit for its editor, will not word-wrap and will occupy a single cell. Insert the table item into a table with QTable::setItem().
+The table item will use a TQLineEdit for its editor, will not word-wrap and will occupy a single cell. Insert the table item into a table with QTable::setItem().
.PP
The table takes ownership of the table item, so a table item should not be inserted into more than one table at a time.
.SH "QTableItem::QTableItem ( QTable * table, EditType et, const TQString & text, const TQPixmap & p )"
Creates a table item that is a child of table \fItable\fR with text \fItext\fR and pixmap \fIp\fR. The item has the EditType \fIet\fR.
.PP
-The table item will display the pixmap to the left of the text. It will use a QLineEdit for editing the text, will not word-wrap and will occupy a single cell. Insert the table item into a table with QTable::setItem().
+The table item will display the pixmap to the left of the text. It will use a TQLineEdit for editing the text, will not word-wrap and will occupy a single cell. Insert the table item into a table with QTable::setItem().
.PP
The table takes ownership of the table item, so a table item should not be inserted in more than one table at a time.
.SH "QTableItem::~QTableItem ()\fC [virtual]\fR"
@@ -240,7 +240,7 @@ Returns the column span of the table item, usually 1.
.PP
See also setSpan() and rowSpan().
.SH "TQWidget * QTableItem::createEditor () const\fC [virtual]\fR"
-This virtual function creates an editor which the user can interact with to edit the cell's contents. The default implementation creates a QLineEdit.
+This virtual function creates an editor which the user can interact with to edit the cell's contents. The default implementation creates a TQLineEdit.
.PP
If the function returns 0, the cell is read-only.
.PP
@@ -256,7 +256,7 @@ If you reimplement this function you'll almost certainly need to reimplement set
.br
// create an editor - a combobox in our case
.br
- ( (ComboItem*)this )->cb = new QComboBox( table()->viewport() );
+ ( (ComboItem*)this )->cb = new TQComboBox( table()->viewport() );
.br
TQObject::connect( cb, TQ_SIGNAL( activated( int ) ), table(), TQ_SLOT( doValueChanged() ) );
.br
@@ -335,9 +335,9 @@ Returns the Run Time Type Identification value for this table item which for QTa
.PP
When you create subclasses based on QTableItem make sure that each subclass returns a unique rtti() value. It is advisable to use values greater than 1000, preferably large random numbers, to allow for extensions to this class.
.PP
-See also QCheckTableItem::rtti() and QComboTableItem::rtti().
+See also TQCheckTableItem::rtti() and TQComboTableItem::rtti().
.PP
-Reimplemented in QComboTableItem and QCheckTableItem.
+Reimplemented in TQComboTableItem and TQCheckTableItem.
.SH "void QTableItem::setCol ( int c )\fC [virtual]\fR"
Sets column \fIc\fR as the table item's column. Usually you will not need to call this function.
.PP
@@ -347,7 +347,7 @@ See also col(), setRow(), and colSpan().
.SH "void QTableItem::setContentFromEditor ( TQWidget * w )\fC [virtual]\fR"
Whenever the content of a cell has been edited by the editor \fIw\fR, QTable calls this virtual function to copy the new values into the QTableItem.
.PP
-If you reimplement createEditor() and return something that is not a QLineEdit you will need to reimplement this function.
+If you reimplement createEditor() and return something that is not a TQLineEdit you will need to reimplement this function.
.PP
.nf
.br
@@ -359,9 +359,9 @@ If you reimplement createEditor() and return something that is not a QLineEdit y
.br
// value of the item (its text), with the value of the combobox
.br
- if ( w->inherits( "QComboBox" ) )
+ if ( w->inherits( "TQComboBox" ) )
.br
- setText( ( (QComboBox*)w )->currentText() );
+ setText( ( (TQComboBox*)w )->currentText() );
.br
else
.br
@@ -382,7 +382,7 @@ Sets pixmap \fIp\fR to be this item's pixmap.
.PP
Note that setPixmap() does not update the cell the table item belongs to. Use QTable::updateCell() to repaint the cell's contents.
.PP
-For QComboTableItems and QCheckTableItems this function has no visible effect.
+For TQComboTableItems and TQCheckTableItems this function has no visible effect.
.PP
See also QTable::setPixmap(), pixmap(), and setText().
.SH "void QTableItem::setReplaceable ( bool b )\fC [virtual]\fR"
@@ -430,7 +430,7 @@ To ensure that the current value of the editor is returned, setContentFromEditor
.TP
if the editMode() is Always, or
.TP
-if editMode() is \fInot\fR Always but the editor of the cell is active and the editor is not a QLineEdit.
+if editMode() is \fInot\fR Always but the editor of the cell is active and the editor is not a TQLineEdit.
.PP
This means that text() returns the original text value of the item if the editor is a line edit, until the user commits an edit (e.g. by pressing Enter or Tab) in which case the new text is returned. For other editors (e.g. a combobox) setContentFromEditor() is always called so the currently display value is the one returned.
.PP