refactor(RD): add helper in ResourceModel to find current sorting

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-12-23 17:28:42 -03:00
parent 563fe8d515
commit c3f0139f76
3 changed files with 18 additions and 8 deletions

View File

@ -84,6 +84,8 @@ class ResourceModel : public QAbstractListModel {
void runSearchJob(NetJob::Ptr);
void runInfoJob(Task::Ptr);
[[nodiscard]] auto getCurrentSortingMethodByIndex() const -> std::optional<ResourceAPI::SortingMethod>;
protected:
const BaseInstance& m_base_instance;