feat: 添加ElaWidgetTool库
This commit is contained in:
20
ElaWidgetTools/DeveloperComponents/ElaColorPreview.h
Normal file
20
ElaWidgetTools/DeveloperComponents/ElaColorPreview.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef ELACOLORPREVIEW_H
|
||||
#define ELACOLORPREVIEW_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#include "ElaDef.h"
|
||||
class ElaColorPreview : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PRIVATE_CREATE(QColor, BaseColor)
|
||||
Q_PRIVATE_CREATE(ElaThemeType::ThemeMode, ThemeMode)
|
||||
public:
|
||||
explicit ElaColorPreview(QWidget* parent = nullptr);
|
||||
~ElaColorPreview();
|
||||
|
||||
protected:
|
||||
virtual void paintEvent(QPaintEvent* event) override;
|
||||
};
|
||||
|
||||
#endif // ELACOLORPREVIEW_H
|
||||
Reference in New Issue
Block a user