2 * wpa_gui - ScanResultsItem class
3 * Copyright (c) 2015, Adrian Nowicki <adinowicki@gmail.com>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
9 #include "scanresultsitem.h"
11 bool ScanResultsItem::operator< (const QTreeWidgetItem &other) const
13 int sortCol = treeWidget()->sortColumn();
14 if (sortCol == 2 || sortCol == 3) {
15 return text(sortCol).toInt() < other.text(sortCol).toInt();
17 return text(sortCol) < other.text(sortCol);