mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-20 10:25:40 +00:00
Initial commit of current work on Prime World Editor
This commit is contained in:
28
UI/WColorPicker.h
Normal file
28
UI/WColorPicker.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef WCOLORPICKER_H
|
||||
#define WCOLORPICKER_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QColor>
|
||||
|
||||
class WColorPicker : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
QColor mColor;
|
||||
|
||||
public:
|
||||
explicit WColorPicker(QWidget *parent = 0);
|
||||
~WColorPicker();
|
||||
void paintEvent(QPaintEvent *);
|
||||
void keyPressEvent(QKeyEvent *Event);
|
||||
void mousePressEvent(QMouseEvent *);
|
||||
void mouseReleaseEvent(QMouseEvent *Event);
|
||||
QColor getColor();
|
||||
void setColor(QColor Color);
|
||||
|
||||
signals:
|
||||
void colorChanged(QColor NewColor);
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // WCOLORPICKER_H
|
||||
Reference in New Issue
Block a user