DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Util::NumericSortingTableWidgetItem Class Reference

Implements a QTableWidgetItem which contains numeric content such that table widget items can be numerically compared with each other. More...

+ Inheritance diagram for Util::NumericSortingTableWidgetItem:

Public Member Functions

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. More...
 
virtual QTableWidgetItem * clone () const override
 
Constructors

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ NumericSortingTableWidgetItem() [1/3]

Util::NumericSortingTableWidgetItem::NumericSortingTableWidgetItem ( )
inline

Definition at line 597 of file QtUtil.h.

◆ NumericSortingTableWidgetItem() [2/3]

Util::NumericSortingTableWidgetItem::NumericSortingTableWidgetItem ( const QString &  text)
inline

Definition at line 598 of file QtUtil.h.

◆ NumericSortingTableWidgetItem() [3/3]

Util::NumericSortingTableWidgetItem::NumericSortingTableWidgetItem ( const QIcon &  icon,
const QString &  text 
)
inline

Definition at line 599 of file QtUtil.h.

Member Function Documentation

◆ clone()

QTableWidgetItem * Util::NumericSortingTableWidgetItem::clone ( ) const
overridevirtual

Definition at line 586 of file QtUtil.cpp.

◆ 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
OtherTable 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: