QFDIcon.h 722 B

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