diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-31 13:38:31 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-31 13:43:03 +0900 |
| commit | 6e4a70d41a2636ce99a1da7b6827ac5685ed3186 (patch) | |
| tree | b029ebf1d5be6d1ac0ee361e7bfb68a7dbed0eec /doc/man/man3/tqtable.3qt | |
| parent | 81ade129093a279e6537db25710583fd2bba9427 (diff) | |
| download | tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.tar.gz tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.zip | |
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked and manually edited from commit 6dd781c483eea56f51ae0eff47d857976b5d0f0d)
Diffstat (limited to 'doc/man/man3/tqtable.3qt')
| -rw-r--r-- | doc/man/man3/tqtable.3qt | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/doc/man/man3/tqtable.3qt b/doc/man/man3/tqtable.3qt index 164b1acb6..2a7992010 100644 --- a/doc/man/man3/tqtable.3qt +++ b/doc/man/man3/tqtable.3qt @@ -105,10 +105,10 @@ Inherited by QDataTable. .BI "bool \fBisSelected\fR ( int row, int col ) const" .br .ti -1c -.BI "bool \fBisRowSelected\fR ( int row, bool full = FALSE ) const" +.BI "bool \fBisRowSelected\fR ( int row, bool full = false ) const" .br .ti -1c -.BI "bool \fBisColumnSelected\fR ( int col, bool full = FALSE ) const" +.BI "bool \fBisColumnSelected\fR ( int col, bool full = false ) const" .br .ti -1c .BI "int \fBnumSelections\fR () const" @@ -147,7 +147,7 @@ Inherited by QDataTable. .BI "bool \fBrowMovingEnabled\fR () const" .br .ti -1c -.BI "virtual void \fBsortColumn\fR ( int col, bool ascending = TRUE, bool wholeRows = FALSE )" +.BI "virtual void \fBsortColumn\fR ( int col, bool ascending = true, bool wholeRows = false )" .br .ti -1c .BI "bool \fBsorting\fR () const" @@ -258,10 +258,10 @@ Inherited by QDataTable. .BI "virtual void \fBsetSorting\fR ( bool b )" .br .ti -1c -.BI "virtual void \fBswapRows\fR ( int row1, int row2, bool swapHeader = FALSE )" +.BI "virtual void \fBswapRows\fR ( int row1, int row2, bool swapHeader = false )" .br .ti -1c -.BI "virtual void \fBswapColumns\fR ( int col1, int col2, bool swapHeader = FALSE )" +.BI "virtual void \fBswapColumns\fR ( int col1, int col2, bool swapHeader = false )" .br .ti -1c .BI "virtual void \fBswapCells\fR ( int row1, int col1, int row2, int col2 )" @@ -276,7 +276,7 @@ Inherited by QDataTable. .BI "virtual void \fBsetCurrentCell\fR ( int row, int col )" .br .ti -1c -.BI "void \fBclearSelection\fR ( bool repaint = TRUE )" +.BI "void \fBclearSelection\fR ( bool repaint = true )" .br .ti -1c .BI "virtual void \fBsetColumnMovingEnabled\fR ( bool b )" @@ -318,7 +318,7 @@ Inherited by QDataTable. .BI "virtual void \fBremoveColumns\fR ( const QMemArray<int> & cols )" .br .ti -1c -.BI "virtual void \fBeditCell\fR ( int row, int col, bool replace = FALSE )" +.BI "virtual void \fBeditCell\fR ( int row, int col, bool replace = false )" .br .ti -1c .BI "void \fBsetRowLabels\fR ( const QStringList & labels )" @@ -491,7 +491,7 @@ QTable is easy to use, although it does have a large API because of the comprehe .PP The first line constructs the table specifying its size in rows and columns. We then insert a pixmap and some text into the \fIsame\fR cell, with the pixmap appearing to the left of the text. QTable cells can be populated with QTableItems, QComboTableItems or by QCheckTableItems. By default a vertical header appears at the left of the table showing row numbers and a horizontal header appears at the top of the table showing column numbers. (The numbers displayed start at 1, although row and column numbers within QTable begin at 0.) .PP -If you want to use mouse tracking call setMouseTracking( TRUE ) on the \fIviewport\fR; (see QScrollView). +If you want to use mouse tracking call setMouseTracking( true ) on the \fIviewport\fR; (see QScrollView). .PP <center> .ce 1 @@ -509,7 +509,7 @@ Rows and columns can be hidden and shown with hideRow(), hideColumn(), showRow() .PP Rows and columns can be set to be moveable using rowMovingEnabled() and columnMovingEnabled(). The user can drag them to reorder them holding down the Ctrl key and dragging the mouse. For performance reasons, the default behavior of QHeader section numbers is overridden by QTable. Currently in QTable, when a row or column is dragged and reordered, the section number is also changed to its new position. Therefore, there is no difference between the section and the index fields in QHeader. The QTable QHeader classes do not provide a mechanism for indexing independently of the user interface ordering. .PP -The table can be sorted using sortColumn(). Users can sort a column by clicking its header if setSorting() is set to TRUE. Rows can be swapped with swapRows(), columns with swapColumns() and cells with swapCells(). +The table can be sorted using sortColumn(). Users can sort a column by clicking its header if setSorting() is set to true. Rows can be swapped with swapRows(), columns with swapColumns() and cells with swapCells(). .PP For editable tables (see setReadOnly()) you can set the read-only property of individual rows and columns with setRowReadOnly() and setColumnReadOnly(). (Whether a cell is editable or read-only depends on these settings and the cell's QTableItem::EditType.) .PP @@ -628,7 +628,7 @@ Resizes row \fIrow\fR so that the row height is tall enough to display the talle .PP See also adjustColumn(). .SH "TQWidget * QTable::beginEdit ( int row, int col, bool replace )\fC [virtual protected]\fR" -This function is called to start in-place editing of the cell at \fIrow\fR, \fIcol\fR. Editing is achieved by creating an editor (createEditor() is called) and setting the cell's editor with setCellWidget() to the newly created editor. (After editing is complete endEdit() will be called to replace the cell's content with the editor's content.) If \fIreplace\fR is TRUE the editor will start empty; otherwise it will be initialized with the cell's content (if any), i.e. the user will be modifying the original cell content. +This function is called to start in-place editing of the cell at \fIrow\fR, \fIcol\fR. Editing is achieved by creating an editor (createEditor() is called) and setting the cell's editor with setCellWidget() to the newly created editor. (After editing is complete endEdit() will be called to replace the cell's content with the editor's content.) If \fIreplace\fR is true the editor will start empty; otherwise it will be initialized with the cell's content (if any), i.e. the user will be modifying the original cell content. .PP See also endEdit(). .SH "QRect QTable::cellGeometry ( int row, int col ) const\fC [virtual]\fR" @@ -659,8 +659,8 @@ If you don't use QTableItems you may need to reimplement this function: see the This function deletes the widget at \fIrow\fR, \fIcol\fR. Note that the widget is not deleted immediately; instead TQObject::deleteLater() is called on the widget to avoid problems with timing issues. .PP See also cellWidget() and setCellWidget(). -.SH "void QTable::clearSelection ( bool repaint = TRUE )\fC [slot]\fR" -Clears all selections and repaints the appropriate regions if \fIrepaint\fR is TRUE. +.SH "void QTable::clearSelection ( bool repaint = true )\fC [slot]\fR" +Clears all selections and repaints the appropriate regions if \fIrepaint\fR is true. .PP See also removeSelection(). .SH "void QTable::clicked ( int row, int col, int button, const QPoint & mousePos )\fC [signal]\fR" @@ -674,7 +674,7 @@ Returns the number of the column at position \fIx\fR. \fIx\fR must be given in c .PP See also columnPos() and rowAt(). .SH "void QTable::columnClicked ( int col )\fC [virtual protected slot]\fR" -This function is called when the column \fIcol\fR has been clicked. The default implementation sorts this column if sorting() is TRUE. +This function is called when the column \fIcol\fR has been clicked. The default implementation sorts this column if sorting() is true. .SH "void QTable::columnIndexChanged ( int section, int fromIndex, int toIndex )\fC [virtual protected slot]\fR" This function is called when column order is to be changed, i.e. when the user moved the column header \fIsection\fR from \fIfromIndex\fR to \fItoIndex\fR. .PP @@ -682,7 +682,7 @@ If you want to change the column order programmatically, call swapRows() or swap .PP See also QHeader::indexChange() and rowIndexChanged(). .SH "bool QTable::columnMovingEnabled () const" -Returns TRUE if columns can be moved by the user; otherwise returns FALSE. See the "columnMovingEnabled" property for details. +Returns true if columns can be moved by the user; otherwise returns false. See the "columnMovingEnabled" property for details. .SH "int QTable::columnPos ( int col ) const\fC [virtual]\fR" Returns the x-coordinate of the column \fIcol\fR in content coordinates. .PP @@ -718,9 +718,9 @@ This signal is emitted when the user invokes a context menu with the right mouse .SH "TQWidget * QTable::createEditor ( int row, int col, bool initFromCell ) const\fC [virtual protected]\fR" This function returns the widget which should be used as an editor for the contents of the cell at \fIrow\fR, \fIcol\fR. .PP -If \fIinitFromCell\fR is TRUE, the editor is used to edit the current contents of the cell (so the editor widget should be initialized with this content). If \fIinitFromCell\fR is FALSE, the content of the cell is replaced with the new content which the user entered into the widget created by this function. +If \fIinitFromCell\fR is true, the editor is used to edit the current contents of the cell (so the editor widget should be initialized with this content). If \fIinitFromCell\fR is false, the content of the cell is replaced with the new content which the user entered into the widget created by this function. .PP -The default functionality is as follows: if \fIinitFromCell\fR is TRUE or the cell has a QTableItem and the table item's QTableItem::isReplaceable() is FALSE then the cell is asked to create an appropriate editor (using QTableItem::createEditor()). Otherwise a QLineEdit is used as the editor. +The default functionality is as follows: if \fIinitFromCell\fR is true or the cell has a QTableItem and the table item's QTableItem::isReplaceable() is false then the cell is asked to create an appropriate editor (using QTableItem::createEditor()). Otherwise a QLineEdit is used as the editor. .PP If you want to create your own editor for certain cells, implement a custom QTableItem subclass and reimplement QTableItem::createEditor(). .PP @@ -775,11 +775,11 @@ This signal is emitted when mouse button \fIbutton\fR is double-clicked. The cel .PP See also TQt::ButtonState. .SH "bool QTable::dragEnabled () const\fC [slot]\fR" -If this function returns TRUE, the table supports dragging. +If this function returns true, the table supports dragging. .PP See also setDragEnabled(). .SH "QDragObject * QTable::dragObject ()\fC [virtual protected]\fR" -If the user presses the mouse on a selected cell, starts moving (i.e. dragging), and dragEnabled() is TRUE, this function is called to obtain a drag object. A drag using this object begins immediately unless dragObject() returns 0. +If the user presses the mouse on a selected cell, starts moving (i.e. dragging), and dragEnabled() is true, this function is called to obtain a drag object. A drag using this object begins immediately unless dragObject() returns 0. .PP By default this function returns 0. You might reimplement it and create a QDragObject depending on the selected items. .PP @@ -794,10 +794,10 @@ Reimplemented from QScrollView. This signal is emitted when a drop event occurred on the table. .PP \fIe\fR contains information about the drop. -.SH "void QTable::editCell ( int row, int col, bool replace = FALSE )\fC [virtual slot]\fR" +.SH "void QTable::editCell ( int row, int col, bool replace = false )\fC [virtual slot]\fR" Starts editing the cell at \fIrow\fR, \fIcol\fR. .PP -If \fIreplace\fR is TRUE the content of this cell will be replaced by the content of the editor when editing is finished, i.e. the user will be entering new data; otherwise the current content of the cell (if any) will be modified in the editor. +If \fIreplace\fR is true the content of this cell will be replaced by the content of the editor when editing is finished, i.e. the user will be entering new data; otherwise the current content of the cell (if any) will be modified in the editor. .PP See also beginEdit(). .SH "EditMode QTable::editMode () const\fC [protected]\fR" @@ -807,9 +807,9 @@ See also QTable::EditMode. .SH "void QTable::endEdit ( int row, int col, bool accept, bool replace )\fC [virtual protected]\fR" This function is called when in-place editing of the cell at \fIrow\fR, \fIcol\fR is requested to stop. .PP -If the cell is not being edited or \fIaccept\fR is FALSE the function returns and the cell's contents are left unchanged. +If the cell is not being edited or \fIaccept\fR is false the function returns and the cell's contents are left unchanged. .PP -If \fIaccept\fR is TRUE the content of the editor must be transferred to the relevant cell. If \fIreplace\fR is TRUE the current content of this cell should be replaced by the content of the editor (this means removing the current QTableItem of the cell and creating a new one for the cell). Otherwise (if possible) the content of the editor should just be set to the existing QTableItem of this cell. +If \fIaccept\fR is true the content of the editor must be transferred to the relevant cell. If \fIreplace\fR is true the current content of this cell should be replaced by the content of the editor (this means removing the current QTableItem of the cell and creating a new one for the cell). Otherwise (if possible) the content of the editor should just be set to the existing QTableItem of this cell. .PP setCellContentFromEditor() is called to replace the contents of the cell with the contents of the cell's editor. .PP @@ -861,53 +861,53 @@ Inserts widget \fIw\fR at \fIrow\fR, \fIcol\fR into the internal data structure. .PP If you don't use QTableItems you may need to reimplement this function: see the notes on large tables. .SH "bool QTable::isColumnHidden ( int col ) const\fC [slot]\fR" -Returns TRUE if column \fIcol\fR is hidden; otherwise returns FALSE. +Returns true if column \fIcol\fR is hidden; otherwise returns false. .PP See also hideColumn() and isRowHidden(). .SH "bool QTable::isColumnReadOnly ( int col ) const" -Returns TRUE if column \fIcol\fR is read-only; otherwise returns FALSE. +Returns true if column \fIcol\fR is read-only; otherwise returns false. .PP Whether a cell in this column is editable or read-only depends on the cell's EditType, and this setting: see QTableItem::EditType. .PP See also setColumnReadOnly() and isRowReadOnly(). -.SH "bool QTable::isColumnSelected ( int col, bool full = FALSE ) const" -Returns TRUE if column \fIcol\fR is selected; otherwise returns FALSE. +.SH "bool QTable::isColumnSelected ( int col, bool full = false ) const" +Returns true if column \fIcol\fR is selected; otherwise returns false. .PP -If \fIfull\fR is FALSE (the default), 'column is selected' means that at least one cell in the column is selected. If \fIfull\fR is TRUE, then 'column is selected' means every cell in the column is selected. +If \fIfull\fR is false (the default), 'column is selected' means that at least one cell in the column is selected. If \fIfull\fR is true, then 'column is selected' means every cell in the column is selected. .PP See also isRowSelected() and isSelected(). .SH "bool QTable::isColumnStretchable ( int col ) const\fC [slot]\fR" -Returns TRUE if column \fIcol\fR is stretchable; otherwise returns FALSE. +Returns true if column \fIcol\fR is stretchable; otherwise returns false. .PP See also setColumnStretchable() and isRowStretchable(). .SH "bool QTable::isEditing () const\fC [protected]\fR" -Returns TRUE if the EditMode is Editing or Replacing; otherwise (i.e. the EditMode is NotEditing) returns FALSE. +Returns true if the EditMode is Editing or Replacing; otherwise (i.e. the EditMode is NotEditing) returns false. .PP See also QTable::EditMode. .SH "bool QTable::isReadOnly () const" -Returns TRUE if the table is read-only; otherwise returns FALSE. See the "readOnly" property for details. +Returns true if the table is read-only; otherwise returns false. See the "readOnly" property for details. .SH "bool QTable::isRowHidden ( int row ) const\fC [slot]\fR" -Returns TRUE if row \fIrow\fR is hidden; otherwise returns FALSE. +Returns true if row \fIrow\fR is hidden; otherwise returns false. .PP See also hideRow() and isColumnHidden(). .SH "bool QTable::isRowReadOnly ( int row ) const" -Returns TRUE if row \fIrow\fR is read-only; otherwise returns FALSE. +Returns true if row \fIrow\fR is read-only; otherwise returns false. .PP Whether a cell in this row is editable or read-only depends on the cell's EditType, and this setting: see QTableItem::EditType. .PP See also setRowReadOnly() and isColumnReadOnly(). -.SH "bool QTable::isRowSelected ( int row, bool full = FALSE ) const" -Returns TRUE if row \fIrow\fR is selected; otherwise returns FALSE. +.SH "bool QTable::isRowSelected ( int row, bool full = false ) const" +Returns true if row \fIrow\fR is selected; otherwise returns false. .PP -If \fIfull\fR is FALSE (the default), 'row is selected' means that at least one cell in the row is selected. If \fIfull\fR is TRUE, then 'row is selected' means every cell in the row is selected. +If \fIfull\fR is false (the default), 'row is selected' means that at least one cell in the row is selected. If \fIfull\fR is true, then 'row is selected' means every cell in the row is selected. .PP See also isColumnSelected() and isSelected(). .SH "bool QTable::isRowStretchable ( int row ) const\fC [slot]\fR" -Returns TRUE if row \fIrow\fR is stretchable; otherwise returns FALSE. +Returns true if row \fIrow\fR is stretchable; otherwise returns false. .PP See also setRowStretchable() and isColumnStretchable(). .SH "bool QTable::isSelected ( int row, int col ) const" -Returns TRUE if the cell at \fIrow\fR, \fIcol\fR is selected; otherwise returns FALSE. +Returns true if the cell at \fIrow\fR, \fIcol\fR is selected; otherwise returns false. .PP See also isRowSelected() and isColumnSelected(). .SH "QTableItem * QTable::item ( int row, int col ) const\fC [virtual]\fR" @@ -933,7 +933,7 @@ Returns the number of selections. See the "numSelections" property for details. .SH "void QTable::paintCell ( QPainter * p, int row, int col, const QRect & cr, bool selected, const QColorGroup & cg )\fC [virtual]\fR" Paints the cell at \fIrow\fR, \fIcol\fR on the painter \fIp\fR. The painter has already been translated to the cell's origin. \fIcr\fR describes the cell coordinates in the content coordinate system. .PP -If \fIselected\fR is TRUE the cell is highlighted. +If \fIselected\fR is true the cell is highlighted. .PP \fIcg\fR is the colorgroup which should be used to draw the cell content. .PP @@ -949,7 +949,7 @@ Note that the painter is not clipped by default in order to get maximum efficien .br //... your drawing code .br - p->setClipping( FALSE ); + p->setClipping( false ); .br .fi .SH "void QTable::paintCell ( QPainter * p, int row, int col, const QRect & cr, bool selected )\fC [virtual]\fR" @@ -1029,7 +1029,7 @@ If you want to change the order programmatically, call swapRows() or swapColumns .PP See also QHeader::indexChange() and columnIndexChanged(). .SH "bool QTable::rowMovingEnabled () const" -Returns TRUE if rows can be moved by the user; otherwise returns FALSE. See the "rowMovingEnabled" property for details. +Returns true if rows can be moved by the user; otherwise returns false. See the "rowMovingEnabled" property for details. .SH "int QTable::rowPos ( int row ) const\fC [virtual]\fR" Returns the y-coordinate of the row \fIrow\fR in content coordinates. .PP @@ -1077,7 +1077,7 @@ Sets the section labels of the horizontalHeader() to \fIlabels\fR .SH "void QTable::setColumnMovingEnabled ( bool b )\fC [virtual slot]\fR" Sets whether columns can be moved by the user to \fIb\fR. See the "columnMovingEnabled" property for details. .SH "void QTable::setColumnReadOnly ( int col, bool ro )\fC [virtual slot]\fR" -If \fIro\fR is TRUE, column \fIcol\fR is set to be read-only; otherwise the column is set to be editable. +If \fIro\fR is true, column \fIcol\fR is set to be read-only; otherwise the column is set to be editable. .PP Whether a cell in this column is editable or read-only depends on the cell's EditType, and this setting: see QTableItem::EditType. .PP @@ -1085,7 +1085,7 @@ See also isColumnReadOnly(), setRowReadOnly(), and readOnly. .PP Example: chart/setdataform.cpp. .SH "void QTable::setColumnStretchable ( int col, bool stretch )\fC [virtual slot]\fR" -If \fIstretch\fR is TRUE, column \fIcol\fR is set to be stretchable; otherwise column \fIcol\fR is set to be unstretchable. +If \fIstretch\fR is true, column \fIcol\fR is set to be stretchable; otherwise column \fIcol\fR is set to be unstretchable. .PP If the table widget's width decreases or increases stretchable columns will grow narrower or wider to fit the space available as completely as possible. The user cannot manually resize stretchable columns. .PP @@ -1103,7 +1103,7 @@ Moves the focus to the cell at \fIrow\fR, \fIcol\fR. .PP See also currentRow() and currentColumn(). .SH "void QTable::setDragEnabled ( bool b )\fC [virtual slot]\fR" -If \fIb\fR is TRUE, the table starts a drag (see dragObject()) when the user presses and moves the mouse on a selected cell. +If \fIb\fR is true, the table starts a drag (see dragObject()) when the user presses and moves the mouse on a selected cell. .SH "void QTable::setEditMode ( EditMode mode, int row, int col )\fC [protected]\fR" Sets the current edit mode to \fImode\fR, the current edit row to \fIrow\fR and the current edit column to \fIcol\fR. .PP @@ -1155,13 +1155,13 @@ Sets the section labels of the verticalHeader() to \fIlabels\fR .SH "void QTable::setRowMovingEnabled ( bool b )\fC [virtual slot]\fR" Sets whether rows can be moved by the user to \fIb\fR. See the "rowMovingEnabled" property for details. .SH "void QTable::setRowReadOnly ( int row, bool ro )\fC [virtual slot]\fR" -If \fIro\fR is TRUE, row \fIrow\fR is set to be read-only; otherwise the row is set to be editable. +If \fIro\fR is true, row \fIrow\fR is set to be read-only; otherwise the row is set to be editable. .PP Whether a cell in this row is editable or read-only depends on the cell's EditType, and this setting: see QTableItem::EditType. .PP See also isRowReadOnly(), setColumnReadOnly(), and readOnly. .SH "void QTable::setRowStretchable ( int row, bool stretch )\fC [virtual slot]\fR" -If \fIstretch\fR is TRUE, row \fIrow\fR is set to be stretchable; otherwise row \fIrow\fR is set to be unstretchable. +If \fIstretch\fR is true, row \fIrow\fR is set to be stretchable; otherwise row \fIrow\fR is set to be unstretchable. .PP If the table widget's height decreases or increases stretchable rows will grow shorter or taller to fit the space available as completely as possible. The user cannot manually resize stretchable rows. .PP @@ -1194,15 +1194,15 @@ Shows column \fIcol\fR. .PP See also hideColumn() and showRow(). .SH "bool QTable::showGrid () const" -Returns TRUE if the table's grid is displayed; otherwise returns FALSE. See the "showGrid" property for details. +Returns true if the table's grid is displayed; otherwise returns false. See the "showGrid" property for details. .SH "void QTable::showRow ( int row )\fC [virtual slot]\fR" Shows row \fIrow\fR. .PP See also hideRow() and showColumn(). -.SH "void QTable::sortColumn ( int col, bool ascending = TRUE, bool wholeRows = FALSE )\fC [virtual]\fR" -Sorts column \fIcol\fR. If \fIascending\fR is TRUE the sort is in ascending order, otherwise the sort is in descending order. +.SH "void QTable::sortColumn ( int col, bool ascending = true, bool wholeRows = false )\fC [virtual]\fR" +Sorts column \fIcol\fR. If \fIascending\fR is true the sort is in ascending order, otherwise the sort is in descending order. .PP -If \fIwholeRows\fR is TRUE, entire rows are sorted using swapRows(); otherwise only cells in the column are sorted using swapCells(). +If \fIwholeRows\fR is true, entire rows are sorted using swapRows(); otherwise only cells in the column are sorted using swapCells(). .PP Note that if you are not using QTableItems you will need to reimplement swapRows() and swapCells(). (See the notes on large tables.) .PP @@ -1212,7 +1212,7 @@ Example: table/statistics/statistics.cpp. .PP Reimplemented in QDataTable. .SH "bool QTable::sorting () const" -Returns TRUE if a click on the header of a column sorts that column; otherwise returns FALSE. See the "sorting" property for details. +Returns true if a click on the header of a column sorts that column; otherwise returns false. See the "sorting" property for details. .SH "void QTable::startDrag ()\fC [virtual protected]\fR" Starts a drag. .PP @@ -1227,24 +1227,24 @@ This function is also called when the table is sorted. If you don't use QTableItems and want your users to be able to swap cells, you will need to reimplement this function. (See the notes on large tables.) .PP See also swapColumns() and swapRows(). -.SH "void QTable::swapColumns ( int col1, int col2, bool swapHeader = FALSE )\fC [virtual slot]\fR" +.SH "void QTable::swapColumns ( int col1, int col2, bool swapHeader = false )\fC [virtual slot]\fR" Swaps the data in \fIcol1\fR with \fIcol2\fR. .PP This function is used to swap the positions of two columns. It is called when the user changes the order of columns (see setColumnMovingEnabled(), and when columns are sorted. .PP If you don't use QTableItems and want your users to be able to swap columns you will need to reimplement this function. (See the notes on large tables.) .PP -If \fIswapHeader\fR is TRUE, the columns' header contents is also swapped. +If \fIswapHeader\fR is true, the columns' header contents is also swapped. .PP See also swapCells(). -.SH "void QTable::swapRows ( int row1, int row2, bool swapHeader = FALSE )\fC [virtual slot]\fR" +.SH "void QTable::swapRows ( int row1, int row2, bool swapHeader = false )\fC [virtual slot]\fR" Swaps the data in \fIrow1\fR and \fIrow2\fR. .PP This function is used to swap the positions of two rows. It is called when the user changes the order of rows (see setRowMovingEnabled()), and when rows are sorted. .PP If you don't use QTableItems and want your users to be able to swap rows, e.g. for sorting, you will need to reimplement this function. (See the notes on large tables.) .PP -If \fIswapHeader\fR is TRUE, the rows' header contents is also swapped. +If \fIswapHeader\fR is true, the rows' header contents is also swapped. .PP This function will not update the QTable, you will have to do this manually, e.g. by calling updateContents(). .PP @@ -1284,7 +1284,7 @@ Examples: .SH "bool columnMovingEnabled" This property holds whether columns can be moved by the user. .PP -The default is FALSE. Columns are moved by dragging whilst holding down the Ctrl key. +The default is false. Columns are moved by dragging whilst holding down the Ctrl key. .PP \fBWarning:\fR If QTable is used to move header sections as a result of user interaction, the mapping between header indexes and section exposed by QHeader will not reflect the order of the headers in the table; i.e., QTable does not call QHeader::moveSection() to move sections but handles move operations internally. .PP @@ -1328,7 +1328,7 @@ Set this property's value with setReadOnly() and get this property's value with .SH "bool rowMovingEnabled" This property holds whether rows can be moved by the user. .PP -The default is FALSE. Rows are moved by dragging whilst holding down the Ctrl key. +The default is false. Rows are moved by dragging whilst holding down the Ctrl key. .PP \fBWarning:\fR If QTable is used to move header sections as a result of user interaction, the mapping between header indexes and section exposed by QHeader will not reflect the order of the headers in the table; i.e., QTable does not call QHeader::moveSection() to move sections but handles move operations internally. .PP |
