mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 09:15:34 +08:00
refs #849, new column formatter for integer
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ad0ef16ba5
commit
cb1e213c64
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user