refs #413 Moved iconByIndex method from CIconList to CIcon, to reduce coupling.

This commit is contained in:
Mathew Sutcliffe
2015-05-04 20:23:27 +01:00
parent d476c9b709
commit 03707db182
4 changed files with 25 additions and 7 deletions

View File

@@ -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);