mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #800 Removed pointless casts and conversions.
This commit is contained in:
committed by
Klaus Basan
parent
95a82f37a0
commit
a44ffcbe79
@@ -40,9 +40,9 @@ namespace BlackGui
|
||||
//! \copydoc CDefaultFormatter::displayRole
|
||||
virtual CVariant displayRole(const CVariant &dataCVariant) const override
|
||||
{
|
||||
if (dataCVariant.canConvert<double>())
|
||||
if (dataCVariant.canConvert<int>())
|
||||
{
|
||||
int rh = dataCVariant.value<double>();
|
||||
int rh = dataCVariant.value<int>();
|
||||
QString formattedString = QString::number(rh) + " %";
|
||||
return formattedString;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user