Implements a QTableWidgetItem which contains numeric content such that table widget items can be numerically compared with each other.
More...
#include <QtUtil.h>
|
| bool | operator< (const QTableWidgetItem &Other) const |
| | Compares the content of this table widget item with the content of another table widget item by converting the items' texts into numeric values.
|
| |
| virtual QTableWidgetItem * | clone () const override |
| |
|
These constructors only forward parameters to the respective QTableWidgetItem constructor with the same signature.
|
| | NumericSortingTableWidgetItem () |
| |
| | NumericSortingTableWidgetItem (const QString &text) |
| |
| | NumericSortingTableWidgetItem (const QIcon &icon, const QString &text) |
| |
Implements a QTableWidgetItem which contains numeric content such that table widget items can be numerically compared with each other.
Definition at line 589 of file QtUtil.h.
◆ NumericSortingTableWidgetItem() [1/3]
| Util::NumericSortingTableWidgetItem::NumericSortingTableWidgetItem |
( |
| ) |
|
|
inline |
◆ NumericSortingTableWidgetItem() [2/3]
| Util::NumericSortingTableWidgetItem::NumericSortingTableWidgetItem |
( |
const QString & |
text | ) |
|
|
inline |
◆ NumericSortingTableWidgetItem() [3/3]
| Util::NumericSortingTableWidgetItem::NumericSortingTableWidgetItem |
( |
const QIcon & |
icon, |
|
|
const QString & |
text |
|
) |
| |
|
inline |
◆ clone()
| QTableWidgetItem * Util::NumericSortingTableWidgetItem::clone |
( |
| ) |
const |
|
overridevirtual |
◆ operator<()
| bool Util::NumericSortingTableWidgetItem::operator< |
( |
const QTableWidgetItem & |
Other | ) |
const |
Compares the content of this table widget item with the content of another table widget item by converting the items' texts into numeric values.
- Parameters
-
| Other | Table widget item to compare this item with |
- Returns
- Returns true if the numeric content of this item is smaller than the numeric content of
Other, false otherwise.
Definition at line 581 of file QtUtil.cpp.
The documentation for this class was generated from the following files: