QFDIcon.h 675 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. Expert,
  12. Project,
  13. User,
  14. };
  15. Q_ENUM(IconType)
  16. static QString iconName(IconType type);
  17. QFDIcon(IconType type, Qfw::Theme t = Qfw::AUTO);
  18. QString iconPath();
  19. QIcon icon() override;
  20. QString typeName() const override;
  21. QString enumName() const override;
  22. FluentIconBase *clone() override;
  23. Qfw::Theme theme() const;
  24. void setTheme(const Qfw::Theme &theme) override;
  25. private:
  26. Qfw::Theme m_theme;
  27. IconType m_type;
  28. };
  29. #endif // QFDICON_H