QFDIcon.h 707 B

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