diff options
author | Arno <arno@disconnect.de> | 2018-11-23 15:13:57 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-11-23 15:13:57 +0100 |
commit | 38bf0f461f394fbed795c21dcf70e953bb160a9e (patch) | |
tree | 965aff4b0c2f2b3bcad4aa166601d3206e869491 /archivebrowsermodel.cpp | |
parent | cab7f7636598e53405b07507248bdf9fd02b3851 (diff) | |
download | SheMov-38bf0f461f394fbed795c21dcf70e953bb160a9e.tar.gz SheMov-38bf0f461f394fbed795c21dcf70e953bb160a9e.tar.bz2 SheMov-38bf0f461f394fbed795c21dcf70e953bb160a9e.zip |
Fix some float casts
Diffstat (limited to 'archivebrowsermodel.cpp')
-rw-r--r-- | archivebrowsermodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archivebrowsermodel.cpp b/archivebrowsermodel.cpp index 4e7dfe3..4174f7e 100644 --- a/archivebrowsermodel.cpp +++ b/archivebrowsermodel.cpp @@ -54,7 +54,7 @@ QVariant ArchiveBrowserModel::data(const QModelIndex &index, int role) const { } if(role == Qt::ForegroundRole){ if(col == TotalSize){ - qint64 s = item->data(TotalSize).toDouble(); + qint64 s = item->data(TotalSize).toLongLong(); QColor retval = Qt::green; if(s > DVDSIZE){ retval = Qt::cyan; @@ -243,7 +243,7 @@ bool ArchiveBrowserModelProxy::filterAcceptsRow(int sourceRow, const QModelIndex QModelIndex qualIdx = sourceModel()->index(sourceRow, ArchiveBrowserModel::Quality, sourceParent); int quality = qualIdx.data().toInt(); QModelIndex sizeIdx = sourceModel()->index(sourceRow, ArchiveBrowserModel::TotalSize, sourceParent); - qint64 size = sizeIdx.data().toDouble(); + qint64 size = sizeIdx.data().toLongLong(); if(mQuality > -1 && mSizeFilter){ if(quality <= mQuality && size <= mBytesRemaining){ return true; |