55#ifndef QTCOLORTRIANGLE_H
56#define QTCOLORTRIANGLE_H
63#if defined(KLF_WS_WIN)
64# if !defined(QT_QTCOLORTRIANGLE_EXPORT) && !defined(QT_QTCOLORTRIANGLE_IMPORT)
65# define QT_QTCOLORTRIANGLE_EXPORT
66# elif defined(QT_QTCOLORTRIANGLE_IMPORT)
67# if defined(QT_QTCOLORTRIANGLE_EXPORT)
68# undef QT_QTCOLORTRIANGLE_EXPORT
70# define QT_QTCOLORTRIANGLE_EXPORT __declspec(dllimport)
71# elif defined(QT_QTCOLORTRIANGLE_EXPORT)
72# undef QT_QTCOLORTRIANGLE_EXPORT
73# define QT_QTCOLORTRIANGLE_EXPORT __declspec(dllexport)
76# define QT_QTCOLORTRIANGLE_EXPORT
83 Q_PROPERTY(
QColor color READ color WRITE setColor)
89 QSize sizeHint()
const;
90 int heightForWidth(
int w)
const;
99 void setColor(
const QColor &col);
111 void internalSetNewColor(
const QColor& color);
114 double radiusAt(
const QPointF &pos,
const QRect &rect)
const;
115 double angleAt(
const QPointF &pos,
const QRect &rect)
const;
116 QPointF movePointToTriangle(
double x,
double y,
const Vertex &a,
117 const Vertex &b,
const Vertex &c)
const;
122 void genBackground();
131 bool mustGenerateBackground;
The QtColorTriangle class provides a triangular color selection widget.
void colorChanged(const QColor &col)
#define QT_QTCOLORTRIANGLE_EXPORT