refs #849, new column formatter for integer

This commit is contained in:
Klaus Basan
2017-01-05 02:19:15 +01:00
committed by Mathew Sutcliffe
parent ad0ef16ba5
commit cb1e213c64
4 changed files with 24 additions and 0 deletions

View File

@@ -279,6 +279,17 @@ namespace BlackGui
QString m_formatString = "yyyy-MM-dd HH:mm"; //!< how the value is displayed
};
//! Formatter when column contains an integer
class CIntegerFormatter : public CDefaultFormatter
{
public:
//! Constructor
CIntegerFormatter(int alignment = alignRightVCenter()) : CDefaultFormatter(alignment, false) {}
//! \copydoc CDefaultFormatter::displayRole
virtual BlackMisc::CVariant displayRole(const BlackMisc::CVariant &expectedInteger) const override;
};
//! Formatter when column contains an altitude
class CAltitudeFormatter : public CDefaultFormatter
{