mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
refs #413 Moved iconByIndex method from CIconList to CIcon, to reduce coupling.
This commit is contained in:
@@ -67,6 +67,12 @@ namespace BlackMisc
|
||||
//! \copydoc CValueObject::convertToQString
|
||||
virtual QString convertToQString(bool i18n = false) const override;
|
||||
|
||||
//! Icon for given index
|
||||
static const CIcon &iconByIndex(CIcons::IconIndex index);
|
||||
|
||||
//! Icon for given index
|
||||
static const CIcon &iconByIndex(int index);
|
||||
|
||||
private:
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CIcon)
|
||||
int m_index = static_cast<int>(CIcons::NotSet);
|
||||
|
||||
Reference in New Issue
Block a user