QFDIcon.h 787 B

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