|Q3TableSelection(int start_row, int start_col, int end_row, int end_col)|
|void||expandTo(int row, int col)|
|void||init(int row, int col)|
|bool||operator!=(const Q3TableSelection & s) const|
|bool||operator==(const Q3TableSelection & s) const|
The selection is a rectangular set of cells in a Q3Table. One of the rectangle's cells is called the anchor cell; this is the cell that was selected first. The init() function sets the anchor and the selection rectangle to exactly this cell; the expandTo() function expands the selection rectangle to include additional cells.
There are various access functions to find out about the area: anchorRow() and anchorCol() return the anchor's position; leftCol(), rightCol(), topRow() and bottomRow() return the rectangle's four edges. All four are part of the selection.
Member Function Documentation
Creates an active selection, starting at start_row and start_col, ending at end_row and end_col.
Returns the anchor column of the selection.
Returns the anchor row of the selection.
Returns the bottom row of the selection.
Expands the selection to include cell row, col. The new selection rectangle is the bounding rectangle of row, col and the previous selection rectangle. After calling this function the selection is active.
If you haven't called init(), this function does nothing.
Sets the selection anchor to cell row, col and the selection to only contain this cell. The selection is not active until expandTo() is called.
To extend the selection to include additional cells, call expandTo().
See also isActive().
Returns whether the selection is empty or not.
Returns the left column of the selection.
Returns the number of columns in the selection.
See also numRows().
Returns the number of rows in the selection.
See also numCols().
Returns the right column of the selection.
Returns the top row of the selection.
bool Q3TableSelection::operator!=(const Q3TableSelection & s) const
Returns true if s does not include the same cells as the selection; otherwise returns false.
bool Q3TableSelection::operator==(const Q3TableSelection & s) const
Returns true if s includes the same cells as the selection; otherwise returns false.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.