colorlistwidget.h 375 B

123456789101112131415161718192021
  1. #ifndef COLORLISTWIDGET_H
  2. #define COLORLISTWIDGET_H
  3. #include <QHash>
  4. #include <QWidget>
  5. class QTableWidget;
  6. class ColorListWidget : public QWidget
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit ColorListWidget(QWidget *parent = nullptr);
  11. void setColors(const QHash<QString, QColor> &colors);
  12. private:
  13. QTableWidget *table;
  14. void setupUI();
  15. };
  16. #endif // COLORLISTWIDGET_H