summaryrefslogtreecommitdiffstats
path: root/sigtools
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-26 07:03:22 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-26 07:03:22 -0400
commit57d34ec1e6e410bcea8a7b17a0cd66437fd0d905 (patch)
tree9012eff8ff916768348211f0620c766ea39950b4 /sigtools
parent4e37fec92b11f6b8d4bef068393ff8a84bde5662 (diff)
downloadsigen-57d34ec1e6e410bcea8a7b17a0cd66437fd0d905.tar.gz
sigen-57d34ec1e6e410bcea8a7b17a0cd66437fd0d905.tar.xz
sigen-57d34ec1e6e410bcea8a7b17a0cd66437fd0d905.zip
Use a natural comparison for comparison of class names
Diffstat (limited to 'sigtools')
-rw-r--r--sigtools/PluginTreeProxyModel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sigtools/PluginTreeProxyModel.cpp b/sigtools/PluginTreeProxyModel.cpp
index f4f0a293..aa5938bf 100644
--- a/sigtools/PluginTreeProxyModel.cpp
+++ b/sigtools/PluginTreeProxyModel.cpp
@@ -24,6 +24,7 @@
// KDE includes
#include <KLineEdit>
+#include <KStringHandler>
using namespace Sigtools;
@@ -50,5 +51,5 @@ bool PluginTreeProxyModel::filterAcceptsRow(const int sourceRow, const QModelInd
bool PluginTreeProxyModel::subSortLessThan(const QModelIndex& left, const QModelIndex& right) const
{
- return static_cast<PluginTreeModel::ClassData*>(left.internalPointer())->m_name.compare(static_cast<PluginTreeModel::ClassData*>(right.internalPointer())->m_name, Qt::CaseInsensitive) < 0;
+ return KStringHandler::naturalCompare(static_cast<PluginTreeModel::ClassData*>(left.internalPointer())->m_name, static_cast<PluginTreeModel::ClassData*>(right.internalPointer())->m_name, Qt::CaseInsensitive) < 0;
}