refactor: move MMCStrings -> StringUtils
General utilities can go in here >:) Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
76050880f1
commit
353b51f11e
15 changed files with 32 additions and 34 deletions
|
@ -36,7 +36,7 @@
|
|||
#include "ListModel.h"
|
||||
#include "Application.h"
|
||||
|
||||
#include <MMCStrings.h>
|
||||
#include "StringUtils.h"
|
||||
#include <Version.h>
|
||||
|
||||
#include <QtMath>
|
||||
|
@ -66,7 +66,7 @@ bool FilterModel::lessThan(const QModelIndex &left, const QModelIndex &right) co
|
|||
return lv < rv;
|
||||
|
||||
} else if(currentSorting == Sorting::ByName) {
|
||||
return Strings::naturalCompare(leftPack.name, rightPack.name, Qt::CaseSensitive) >= 0;
|
||||
return StringUtils::naturalCompare(leftPack.name, rightPack.name, Qt::CaseSensitive) >= 0;
|
||||
}
|
||||
|
||||
//UHM, some inavlid value set?!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue