summaryrefslogtreecommitdiffstats
path: root/archivebrowsermodel.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2014-02-14 15:51:19 +0100
committerArno <am@disconnect.de>2014-02-14 15:51:19 +0100
commitc8a12c10bba1a74282e84f7613d76912c419cd35 (patch)
tree27727664d65767756474387dc5f783d744fefa39 /archivebrowsermodel.cpp
parent424d37e94dbf820e3d0559e0041d6d2cd005f072 (diff)
downloadSheMov-c8a12c10bba1a74282e84f7613d76912c419cd35.tar.gz
SheMov-c8a12c10bba1a74282e84f7613d76912c419cd35.tar.bz2
SheMov-c8a12c10bba1a74282e84f7613d76912c419cd35.zip
Fix size filter in Archive Browser
The size filter filtered more than selectedSize in the statusBar suggested, because it used a differet size. Fix it by using a #define everywhere.
Diffstat (limited to 'archivebrowsermodel.cpp')
-rw-r--r--archivebrowsermodel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/archivebrowsermodel.cpp b/archivebrowsermodel.cpp
index 08a0752..5da95f1 100644
--- a/archivebrowsermodel.cpp
+++ b/archivebrowsermodel.cpp
@@ -11,6 +11,7 @@
#include "archivebrowsermodel.h"
#include "smtreeitem.h"
+#include "smglobals.h"
#include "helper.h"
ArchiveBrowserModel::ArchiveBrowserModel(const QStringList &headers, QObject *parent) : SmTreeModel(headers, parent), mNumFields(8) {
@@ -52,10 +53,10 @@ QVariant ArchiveBrowserModel::data(const QModelIndex &index, int role) const {
if(col == TotalSize){
qint64 s = item->data(TotalSize).toDouble();
QColor retval = Qt::green;
- if(s > Q_INT64_C(1024 * 1024 * 1024 * 2)){
+ if(s > DVDSIZE){
retval = Qt::cyan;
}
- if(s > Q_INT64_C(1024 * 1024 * 1024 * 4)){
+ if(s > DVDSIZE){
retval = Qt::red;
}
return retval;