Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/kfileitemmodelrolesupdater.cpp
Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Line(s) | 395 | while (it != m_finishedItems.end()) { | |||
---|---|---|---|---|---|
400 | } | 400 | } | ||
401 | } | 401 | } | ||
402 | 402 | | |||
403 | // The visible items might have changed. | 403 | // The visible items might have changed. | ||
404 | startUpdating(); | 404 | startUpdating(); | ||
405 | } | 405 | } | ||
406 | } | 406 | } | ||
407 | 407 | | |||
408 | void KFileItemModelRolesUpdater::slotItemsMoved(const KItemRange& itemRange, QList<int> movedToIndexes) | 408 | void KFileItemModelRolesUpdater::slotItemsMoved(const KItemRange& itemRange, const QList<int> &movedToIndexes) | ||
409 | { | 409 | { | ||
410 | Q_UNUSED(itemRange); | 410 | Q_UNUSED(itemRange); | ||
411 | Q_UNUSED(movedToIndexes); | 411 | Q_UNUSED(movedToIndexes); | ||
412 | 412 | | |||
413 | // The visible items might have changed. | 413 | // The visible items might have changed. | ||
414 | startUpdating(); | 414 | startUpdating(); | ||
415 | } | 415 | } | ||
416 | 416 | | |||
▲ Show 20 Lines • Show All 288 Lines • ▼ Show 20 Line(s) | 704 | #ifdef HAVE_BALOO | |||
705 | const KFileItem item = m_model->fileItem(QUrl::fromLocalFile(file)); | 705 | const KFileItem item = m_model->fileItem(QUrl::fromLocalFile(file)); | ||
706 | 706 | | |||
707 | if (item.isNull()) { | 707 | if (item.isNull()) { | ||
708 | // itemUrl is not in the model anymore, probably because | 708 | // itemUrl is not in the model anymore, probably because | ||
709 | // the corresponding file has been deleted in the meantime. | 709 | // the corresponding file has been deleted in the meantime. | ||
710 | return; | 710 | return; | ||
711 | } | 711 | } | ||
712 | applyChangedBalooRolesForItem(item); | 712 | applyChangedBalooRolesForItem(item); | ||
713 | #else | ||||
714 | Q_UNUSED(file); | ||||
713 | #endif | 715 | #endif | ||
714 | } | 716 | } | ||
715 | 717 | | |||
716 | void KFileItemModelRolesUpdater::applyChangedBalooRolesForItem(const KFileItem &item) | 718 | void KFileItemModelRolesUpdater::applyChangedBalooRolesForItem(const KFileItem &item) | ||
717 | { | 719 | { | ||
718 | #ifdef HAVE_BALOO | 720 | #ifdef HAVE_BALOO | ||
719 | Baloo::File file(item.localPath()); | 721 | Baloo::File file(item.localPath()); | ||
720 | file.load(); | 722 | file.load(); | ||
▲ Show 20 Lines • Show All 473 Lines • Show Last 20 Lines |