mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Simplify natural sort classes interface
Now the comparison function/class should be constructed before usage. This change also make it easier to plug in into various containers which will require a compare function type (such as std::set).
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "base/settingvalue.h"
|
||||
#include "base/torrentfilter.h"
|
||||
#include "base/utils/compare.h"
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
@@ -64,4 +65,6 @@ private:
|
||||
TorrentFilter m_filter;
|
||||
mutable CachedSettingValue<int> m_subSortColumn;
|
||||
mutable int m_lastSortColumn = -1;
|
||||
|
||||
Utils::Compare::NaturalCompare<Qt::CaseInsensitive> m_naturalCompare;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user