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
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;
void colorChanged(const QColor &col)
void internalSetNewColor(const QColor &color)
void keyPressEvent(QKeyEvent *e)
void drawTrigon(QImage *p, const QPointF &a, const QPointF &b, const QPointF &c, const QColor &color)
QtColorTriangle(QWidget *parent=0)
int heightForWidth(int w) const
void mousePressEvent(QMouseEvent *)
void setColor(const QColor &col)
void mouseReleaseEvent(QMouseEvent *)
void mouseMoveEvent(QMouseEvent *)
void resizeEvent(QResizeEvent *)
void paintEvent(QPaintEvent *)
#define QT_QTCOLORTRIANGLE_EXPORT