colordialogapi.h 708 B

12345678910111213141516171819202122232425
  1. #ifndef COLORDIALOGAPI_H
  2. #define COLORDIALOGAPI_H
  3. #include <QWidget>
  4. #if defined (EXPORT_LIBRARY)
  5. # define EXPORT_DLL Q_DECL_EXPORT
  6. #else
  7. # define EXPORT_DLL Q_DECL_IMPORT
  8. #endif
  9. enum class ColorDlgSkin {
  10. BRIGHT = 0, // 浅色皮肤
  11. DARK = 1, // 深色皮肤
  12. OTHER = 2, // 自定义皮肤文件,需传入样式
  13. };
  14. // EXPORT_DLL
  15. QColor getColor(QWidget* parent, ColorDlgSkin skin, const QString& qss = QString(),
  16. const QColor& initClr = QColor(),
  17. const QList<QColor>& baseClrs = QList<QColor>(),
  18. const QList<QColor>& customClrs = QList<QColor>());
  19. #endif // COLORDIALOGAPI_H