QFDIcon.h 691 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef QFDICON_H
  2. #define QFDICON_H
  3. #include <Common/Icon.h>
  4. class QFDIcon : public FluentIconBase
  5. {
  6. Q_OBJECT
  7. public:
  8. enum IconType
  9. {
  10. Data,
  11. Detail,
  12. Expert,
  13. Project,
  14. User,
  15. };
  16. Q_ENUM(IconType)
  17. static QString iconName(IconType type);
  18. QFDIcon(IconType type, Qfw::Theme t = Qfw::AUTO);
  19. QString iconPath();
  20. QIcon icon() override;
  21. QString typeName() const override;
  22. QString enumName() const override;
  23. FluentIconBase *clone() override;
  24. Qfw::Theme theme() const;
  25. void setTheme(const Qfw::Theme &theme) override;
  26. private:
  27. Qfw::Theme m_theme;
  28. IconType m_type;
  29. };
  30. #endif // QFDICON_H