diff options
author | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-07-22 18:44:02 +0000 |
---|---|---|
committer | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-07-22 18:44:02 +0000 |
commit | 0e3e202c90e3ccb80310087409936c00189f0cea (patch) | |
tree | a4a38c32e761f024e2dfad6a59097cff15472b9e /sizedelegate.cpp | |
parent | 84ed109c159dcbd0c9395717d54599e902060b26 (diff) | |
download | SheMov-0e3e202c90e3ccb80310087409936c00189f0cea.tar.gz SheMov-0e3e202c90e3ccb80310087409936c00189f0cea.tar.bz2 SheMov-0e3e202c90e3ccb80310087409936c00189f0cea.zip |
-Finished CoverArchiveEditor (finally, don't like that piece of code, too complicated)
-It's now possible to manually add a movie w/o a file
-Some usability fixes
git-svn-id: file:///var/svn/repos2/shemov/trunk@394 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'sizedelegate.cpp')
-rw-r--r-- | sizedelegate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sizedelegate.cpp b/sizedelegate.cpp index c6b3ae0..804670f 100644 --- a/sizedelegate.cpp +++ b/sizedelegate.cpp @@ -16,7 +16,7 @@ SizeDelegate::SizeDelegate(QObject *parent) : QAbstractItemDelegate(parent) {}; void SizeDelegate::paint(QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const{ p->save(); - qint64 size = index.data().toInt(); + qint64 size = index.data().toLongLong(); qint64 maxSize = Q_INT64_C(2147483648); QColor c(QColor(Qt::darkGreen)); if(size > maxSize){ @@ -35,7 +35,7 @@ QSize SizeDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelInd QFont font = option.font; QFontMetrics metrics(font); QLocale l; - QString size = l.toString(index.data().toInt()); + QString size = l.toString(index.data().toLongLong()); return metrics.size(Qt::TextSingleLine, size); } |