mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
Issue #77 Break cyclic dependency between CIcon and CIconList by using CSequence<CIcon>
This commit is contained in:
@@ -51,9 +51,6 @@ namespace BlackMisc
|
||||
//! Constructor.
|
||||
CIcon(CIcons::IconIndex index);
|
||||
|
||||
//! Constructor.
|
||||
CIcon(CIcons::IconIndex index, const QString &descriptiveText);
|
||||
|
||||
//! Constructor for generated icon
|
||||
//CIcon(const QPixmap &pixmap, const QString &descriptiveText);
|
||||
|
||||
@@ -111,7 +108,13 @@ namespace BlackMisc
|
||||
//! Icon for given index
|
||||
static const CIcon &iconByIndex(int index);
|
||||
|
||||
//! All icons
|
||||
static const CSequence<CIcon> &allIcons();
|
||||
|
||||
private:
|
||||
//! Constructor.
|
||||
CIcon(CIcons::IconIndex index, const QString &descriptiveText);
|
||||
|
||||
CIcons::IconIndex m_index = CIcons::NotSet;
|
||||
int m_rotateDegrees = 0; //!< Rotation
|
||||
QString m_descriptiveText; //!< what does it represent?
|
||||
|
||||
Reference in New Issue
Block a user