Qt 4.8
|
The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model. More...
#include <qtablewidget.h>
Public Functions | |
int | bottomRow () const |
Returns the bottom row of the range. More... | |
int | columnCount () const |
Returns the number of columns in the range. More... | |
int | leftColumn () const |
Returns the left column of the range. More... | |
QTableWidgetSelectionRange () | |
Constructs an table selection range, i.e. More... | |
QTableWidgetSelectionRange (int top, int left, int bottom, int right) | |
Constructs the table selection range from the given top, left, bottom and right table rows and columns. More... | |
QTableWidgetSelectionRange (const QTableWidgetSelectionRange &other) | |
Constructs a the table selection range by copying the given other table selection range. More... | |
int | rightColumn () const |
Returns the right column of the range. More... | |
int | rowCount () const |
Returns the number of rows in the range. More... | |
int | topRow () const |
Returns the top row of the range. More... | |
~QTableWidgetSelectionRange () | |
Destroys the table selection range. More... | |
Properties | |
int | bottom |
int | left |
int | right |
int | top |
The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.
The QTableWidgetSelectionRange class stores the top left and bottom right rows and columns of a selection range in a table. The selections in the table may consist of several selection ranges.
itemFlags() & Qt::ItemIsSelectable == 0
then it will not appear in the selection range.Definition at line 58 of file qtablewidget.h.
QTableWidgetSelectionRange::QTableWidgetSelectionRange | ( | ) |
Constructs an table selection range, i.e.
a range whose rowCount() and columnCount() are 0.
Definition at line 879 of file qtablewidget.cpp.
QTableWidgetSelectionRange::QTableWidgetSelectionRange | ( | int | top, |
int | left, | ||
int | bottom, | ||
int | right | ||
) |
Constructs the table selection range from the given top, left, bottom and right table rows and columns.
Definition at line 890 of file qtablewidget.cpp.
QTableWidgetSelectionRange::QTableWidgetSelectionRange | ( | const QTableWidgetSelectionRange & | other | ) |
Constructs a the table selection range by copying the given other table selection range.
Definition at line 899 of file qtablewidget.cpp.
QTableWidgetSelectionRange::~QTableWidgetSelectionRange | ( | ) |
|
inline |
Returns the bottom row of the range.
Definition at line 67 of file qtablewidget.h.
Referenced by QTableWidget::setRangeSelected().
|
inline |
Returns the number of columns in the range.
This is equivalent to rightColumn() - leftColumn() + 1.
Definition at line 71 of file qtablewidget.h.
|
inline |
Returns the left column of the range.
Definition at line 68 of file qtablewidget.h.
Referenced by QTableWidget::setRangeSelected().
|
inline |
Returns the right column of the range.
Definition at line 69 of file qtablewidget.h.
Referenced by QTableWidget::setRangeSelected().
|
inline |
Returns the number of rows in the range.
This is equivalent to bottomRow() - topRow() + 1.
Definition at line 70 of file qtablewidget.h.
|
inline |
Returns the top row of the range.
Definition at line 66 of file qtablewidget.h.
Referenced by QTableWidget::setRangeSelected().
|
private |
Definition at line 74 of file qtablewidget.h.
|
private |
Definition at line 74 of file qtablewidget.h.
|
private |
Definition at line 74 of file qtablewidget.h.
|
private |
Definition at line 74 of file qtablewidget.h.