summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qtreewidget_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@gmail.com>2009-06-08 09:05:35 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-06-08 09:51:41 (GMT)
commitb5579e01a023800a6fd81193209db00e000a3620 (patch)
tree3e865551146846196e2aaa0f405d868e5900bfa7 /src/gui/itemviews/qtreewidget_p.h
parenteb8789ba06949974eb4108b115a30f96e1500a81 (diff)
downloadQt-b5579e01a023800a6fd81193209db00e000a3620.zip
Qt-b5579e01a023800a6fd81193209db00e000a3620.tar.gz
Qt-b5579e01a023800a6fd81193209db00e000a3620.tar.bz2
Made QTreeWidgetItem::operator<() check if the data is numerical when comparing.
More information in task 166873. Merge-request: 514 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/gui/itemviews/qtreewidget_p.h')
-rw-r--r--src/gui/itemviews/qtreewidget_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/itemviews/qtreewidget_p.h b/src/gui/itemviews/qtreewidget_p.h
index a089cf5..96f734d 100644
--- a/src/gui/itemviews/qtreewidget_p.h
+++ b/src/gui/itemviews/qtreewidget_p.h
@@ -116,6 +116,7 @@ public:
const QPair<QTreeWidgetItem*,int> &right);
static bool itemGreaterThan(const QPair<QTreeWidgetItem*,int> &left,
const QPair<QTreeWidgetItem*,int> &right);
+ static bool canConvertToDouble(const QVariant &value);
static QList<QTreeWidgetItem*>::iterator sortedInsertionIterator(
const QList<QTreeWidgetItem*>::iterator &begin,
const QList<QTreeWidgetItem*>::iterator &end,