123456789101112131415161718 |
- #include "scanresultsitem.h"
- bool ScanResultsItem::operator< (const QTreeWidgetItem &other) const
- {
- int sortCol = treeWidget()->sortColumn();
- if (sortCol == 2 || sortCol == 3) {
- return text(sortCol).toInt() < other.text(sortCol).toInt();
- }
- return text(sortCol) < other.text(sortCol);
- }
|