demos/gradients/gradients.cpp File Reference

#include "gradients.h"
#include "hoverpoints.h"

Include dependency graph for gradients.cpp:

Go to the source code of this file.

Functions

static bool x_less_than (const QPointF &p1, const QPointF &p2)
static void set_shade_points (const QPolygonF &points, ShadeWidget *shade)


Function Documentation

static void set_shade_points ( const QPolygonF points,
ShadeWidget shade 
) [static]

Definition at line 223 of file gradients.cpp.

References ShadeWidget::hoverPoints(), HoverPoints::LockToLeft, HoverPoints::LockToRight, HoverPoints::setPointLock(), HoverPoints::setPoints(), QVector< T >::size(), and QWidget::update().

Referenced by GradientEditor::setGradientStops().

00224 {
00225     shade->hoverPoints()->setPoints(points);
00226     shade->hoverPoints()->setPointLock(0, HoverPoints::LockToLeft);
00227     shade->hoverPoints()->setPointLock(points.size() - 1, HoverPoints::LockToRight);
00228     shade->update();
00229 }

Here is the call graph for this function:

static bool x_less_than ( const QPointF p1,
const QPointF p2 
) [inline, static]

Definition at line 181 of file gradients.cpp.

References QPointF::x().

Referenced by HoverPoints::firePointChange(), and GradientEditor::pointsUpdated().

00182 {
00183     return p1.x() < p2.x();
00184 }

Here is the call graph for this function:


Generated on Thu Mar 15 12:04:06 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1