Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoinunits.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | public: | ||||
//! @name AbstractListModel implementation | //! @name AbstractListModel implementation | ||||
//! List model for unit drop-down selection box. | //! List model for unit drop-down selection box. | ||||
///@{ | ///@{ | ||||
enum RoleIndex { | enum RoleIndex { | ||||
/** Unit identifier */ | /** Unit identifier */ | ||||
UnitRole = Qt::UserRole | UnitRole = Qt::UserRole | ||||
}; | }; | ||||
int rowCount(const QModelIndex &parent) const; | int rowCount(const QModelIndex &parent) const override; | ||||
QVariant data(const QModelIndex &index, int role) const; | QVariant data(const QModelIndex &index, int role) const override; | ||||
///@} | ///@} | ||||
static QString removeSpaces(QString text) { | static QString removeSpaces(QString text) { | ||||
text.remove(' '); | text.remove(' '); | ||||
text.remove(QChar(THIN_SP_CP)); | text.remove(QChar(THIN_SP_CP)); | ||||
#if (THIN_SP_CP != REAL_THIN_SP_CP) | #if (THIN_SP_CP != REAL_THIN_SP_CP) | ||||
text.remove(QChar(REAL_THIN_SP_CP)); | text.remove(QChar(REAL_THIN_SP_CP)); | ||||
#endif | #endif | ||||
Show All 13 Lines |