warnings-- / fix for fileSize > 2GB

svn path=/trunk/KDE/kdebase/apps/; revision=791169
This commit is contained in:
Christian Ehrlicher 2008-03-28 15:52:41 +00:00
parent f40e6db807
commit 2fdeb4f5bb

View file

@ -190,7 +190,7 @@ QVariant DolphinModel::displayRoleData(const QModelIndex& index) const
}
case KDirModel::Size: {
const int fileSize = !item.isNull() ? item.size() : -1;
const KIO::filesize_t fileSize = !item.isNull() ? item.size() : ~0U;
if (!item.isNull() && item.isDir()) {
retString = i18nc("@title:group Size", "Folders");
} else if (fileSize < 5242880) {
@ -343,7 +343,7 @@ QVariant DolphinModel::sortRoleData(const QModelIndex& index) const
}
case KDirModel::Size: {
const int fileSize = !item.isNull() ? item.size() : -1;
const KIO::filesize_t fileSize = !item.isNull() ? item.size() : ~0U;
if (item.isDir()) {
retVariant = 0;
} else if (fileSize < 5242880) {