|
|
@ -53,17 +53,11 @@ protected: |
|
|
|
const QString strL = left.data().toString(); |
|
|
|
const QString strL = left.data().toString(); |
|
|
|
const QString strR = right.data().toString(); |
|
|
|
const QString strR = right.data().toString(); |
|
|
|
const int result = Utils::String::naturalCompare(strL, strR, Qt::CaseInsensitive); |
|
|
|
const int result = Utils::String::naturalCompare(strL, strR, Qt::CaseInsensitive); |
|
|
|
if (result != 0) |
|
|
|
return (result < 0); |
|
|
|
return (result < 0); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return (left < right); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
if (left.data() != right.data()) |
|
|
|
return QSortFilterProxyModel::lessThan(left, right); |
|
|
|
return QSortFilterProxyModel::lessThan(left, right); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (left < right); |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|