Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s

This commit is contained in:
Public Source Publisher committed 2026-09-30 00:26:45 +00:00
1 parent 91f8b3e3c1
commit def7920856
2271 files changed
+501225 -501178

No files matched your search

+59 -59
View File
@@ -1,59 +1,59 @@
#ifndef COLORWHEEL_H
#define COLORWHEEL_H
#include <QWidget>
class ColorWheel : public QWidget
{
Q_OBJECT
public:
explicit ColorWheel(QWidget *parent = 0);
virtual QSize sizeHint () const;
virtual QSize minimumSizeHint () const;
QColor color();
signals:
void colorChanged(const QColor color);
public slots:
void setColor(const QColor &color);
protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *);
void resizeEvent(QResizeEvent *event);
void paintEvent(QPaintEvent *);
private:
QSize initSize;
QImage wheelImage;
QImage squareImage;
QPixmap wheel;
bool mouseDown;
QPoint lastPos;
int margin;
int wheelWidth;
QRegion wheelRegion;
QRegion squareRegion;
QColor current;
bool inWheel;
bool inSquare;
int x_offset;
int y_offset;
QPixmap CleanWheel;
QImage CleanSquare;
QColor posColor(const QPoint &point);
void drawWheelImage(const QSize &newSize);
void drawIndicator(const int &hue);
void drawPicker(const QColor &color);
void drawSquareImage(const int &hue);
void composeWheel();
private slots:
void hueChanged(const int &hue);
void svChanged(const QColor &newcolor);
};
#endif // COLORWHEEL_H
#ifndef COLORWHEEL_H
#define COLORWHEEL_H
#include <QWidget>
class ColorWheel : public QWidget
{
Q_OBJECT
public:
explicit ColorWheel(QWidget *parent = 0);
virtual QSize sizeHint () const;
virtual QSize minimumSizeHint () const;
QColor color();
signals:
void colorChanged(const QColor color);
public slots:
void setColor(const QColor &color);
protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *);
void resizeEvent(QResizeEvent *event);
void paintEvent(QPaintEvent *);
private:
QSize initSize;
QImage wheelImage;
QImage squareImage;
QPixmap wheel;
bool mouseDown;
QPoint lastPos;
int margin;
int wheelWidth;
QRegion wheelRegion;
QRegion squareRegion;
QColor current;
bool inWheel;
bool inSquare;
int x_offset;
int y_offset;
QPixmap CleanWheel;
QImage CleanSquare;
QColor posColor(const QPoint &point);
void drawWheelImage(const QSize &newSize);
void drawIndicator(const int &hue);
void drawPicker(const QColor &color);
void drawSquareImage(const int &hue);
void composeWheel();
private slots:
void hueChanged(const int &hue);
void svChanged(const QColor &newcolor);
};
#endif // COLORWHEEL_H