diff options
author | Arno <arno@disconnect.de> | 2018-11-24 04:26:56 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-11-24 04:26:56 +0100 |
commit | 6212e95af0b186b70b91fee733da00f088abb99a (patch) | |
tree | b9e698bfd5c4004a229b2756c274c476f9f83feb /delegates.cpp | |
parent | 36af0682d9c6a33650c34057bf6db56652d02317 (diff) | |
download | SheMov-6212e95af0b186b70b91fee733da00f088abb99a.tar.gz SheMov-6212e95af0b186b70b91fee733da00f088abb99a.tar.bz2 SheMov-6212e95af0b186b70b91fee733da00f088abb99a.zip |
Fix clang warnings in delegates
Diffstat (limited to 'delegates.cpp')
-rw-r--r-- | delegates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/delegates.cpp b/delegates.cpp index a168790..7a14bb4 100644 --- a/delegates.cpp +++ b/delegates.cpp @@ -86,7 +86,7 @@ QString DurationDelegate::displayText(const QVariant &value, const QLocale &loca if(value.toString().contains("x") || value.toString() == "skipped"){ return value.toString(); } - int secs = value.toFloat(); + int secs = value.toInt(); if(secs == 0){ return tr("n/a"); } |