Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
xtreewidgetitem.h
Go to the documentation of this file.
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // xtreewidgetitem.h
3 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
4 // (c) 2010-2012
5 // Yves Sablonier, Pete Morgan
6 // Geoff McLane
7 // GNU GPLv2, see main.cpp and shipped licence.txt for further information
8 
9 
10 #include <QTreeWidgetItem>
11 
13 {
14 public:
15 XTreeWidgetItem( QTreeWidget *tree) : QTreeWidgetItem(tree) {}
17 XTreeWidgetItem( QTreeWidget * parent, const QStringList & strings) : QTreeWidgetItem (parent,strings) {}
18 
19 bool operator< (const QTreeWidgetItem &other) const
20 {
21  int sortCol = treeWidget()->sortColumn();
22  return text(sortCol).toUpper() < other.text(sortCol).toUpper();
23 }
24 };
XTreeWidgetItem(QTreeWidget *tree)
bool operator<(const QTreeWidgetItem &other) const
XTreeWidgetItem(QTreeWidgetItem *item)
XTreeWidgetItem(QTreeWidget *parent, const QStringList &strings)