QFDIcon.h 739 B

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