mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-02 14:45:04 +00:00
Corrected description of applySortRole()
This commit is contained in:
parent
9167b30a35
commit
f631747a0c
|
@ -1218,7 +1218,6 @@ void KFileItemModelRolesUpdater::applySortRole(int index)
|
||||||
QHash<QByteArray, QVariant> data;
|
QHash<QByteArray, QVariant> data;
|
||||||
const KFileItem item = m_model->fileItem(index);
|
const KFileItem item = m_model->fileItem(index);
|
||||||
|
|
||||||
// Despite the name, this handles both sorting and grouping, as they happen at the same time (resorting items).
|
|
||||||
if (m_model->sortRole() == "type" || m_model->groupRole() == "type") {
|
if (m_model->sortRole() == "type" || m_model->groupRole() == "type") {
|
||||||
if (!item.isMimeTypeKnown()) {
|
if (!item.isMimeTypeKnown()) {
|
||||||
item.determineMimeType();
|
item.determineMimeType();
|
||||||
|
|
|
@ -315,6 +315,8 @@ private:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolves the sort role of the item and applies it to the model.
|
* Resolves the sort role of the item and applies it to the model.
|
||||||
|
* Despite the name, this handles both sorting and grouping, as
|
||||||
|
* regrouping never happens without resorting at the same time.
|
||||||
*/
|
*/
|
||||||
void applySortRole(int index);
|
void applySortRole(int index);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue