QFDIcon.h 769 B

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