mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
more fixes
svn path=/trunk/KDE/kdebase/apps/; revision=691717
This commit is contained in:
parent
e678566575
commit
7efea42cea
3 changed files with 6 additions and 6 deletions
|
@ -68,7 +68,7 @@ void ApplyViewPropsJob::slotEntries(KIO::Job*, const KIO::UDSEntryList& list)
|
|||
const KIO::UDSEntryList::ConstIterator end = list.end();
|
||||
for (; it != end; ++it) {
|
||||
const KIO::UDSEntry& entry = *it;
|
||||
const QString name = entry.stringValue(KIO::UDS_NAME);
|
||||
const QString name = entry.stringValue(KIO::UDSEntry::UDS_NAME);
|
||||
if ((name != ".") && (name != "..") && entry.isDir()) {
|
||||
++m_progress;
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ QString DolphinItemCategorizer::categoryForItem(const QModelIndex& index,
|
|||
case DolphinView::SortByDate:
|
||||
{
|
||||
KDateTime modifiedTime;
|
||||
modifiedTime.setTime_t(item->time(KIO::UDS_MODIFICATION_TIME));
|
||||
modifiedTime.setTime_t(item->time(KIO::UDSEntry::UDS_MODIFICATION_TIME));
|
||||
modifiedTime = modifiedTime.toLocalZone();
|
||||
|
||||
if (modifiedTime.daysTo(KDateTime::currentLocalDateTime()) == 0)
|
||||
|
|
|
@ -137,8 +137,8 @@ bool DolphinSortFilterProxyModel::lessThanGeneralPurpose(const QModelIndex &left
|
|||
|
||||
case DolphinView::SortByDate: {
|
||||
KDateTime leftTime, rightTime;
|
||||
leftTime.setTime_t(leftFileItem->time(KIO::UDS_MODIFICATION_TIME));
|
||||
rightTime.setTime_t(rightFileItem->time(KIO::UDS_MODIFICATION_TIME));
|
||||
leftTime.setTime_t(leftFileItem->time(KIO::UDSEntry::UDS_MODIFICATION_TIME));
|
||||
rightTime.setTime_t(rightFileItem->time(KIO::UDSEntry::UDS_MODIFICATION_TIME));
|
||||
return leftTime > rightTime;
|
||||
}
|
||||
|
||||
|
@ -281,8 +281,8 @@ bool DolphinSortFilterProxyModel::lessThan(const QModelIndex& left,
|
|||
|
||||
case DolphinView::SortByDate: {
|
||||
KDateTime leftTime, rightTime;
|
||||
leftTime.setTime_t(leftFileItem->time(KIO::UDS_MODIFICATION_TIME));
|
||||
rightTime.setTime_t(rightFileItem->time(KIO::UDS_MODIFICATION_TIME));
|
||||
leftTime.setTime_t(leftFileItem->time(KIO::UDSEntry::UDS_MODIFICATION_TIME));
|
||||
rightTime.setTime_t(rightFileItem->time(KIO::UDSEntry::UDS_MODIFICATION_TIME));
|
||||
|
||||
if (leftTime == rightTime) {
|
||||
return sortCaseSensitivity() ?
|
||||
|
|
Loading…
Reference in a new issue