From 6212e95af0b186b70b91fee733da00f088abb99a Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 24 Nov 2018 04:26:56 +0100 Subject: Fix clang warnings in delegates --- delegates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'delegates.cpp') 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"); } -- cgit v1.2.3-70-g09d2