Changeset View
Changeset View
Standalone View
Standalone View
src/kgesture_p.h
Show All 38 Lines | |||||
39 | public: | 39 | public: | ||
40 | /** | 40 | /** | ||
41 | * Create a new invalid shape gesture. | 41 | * Create a new invalid shape gesture. | ||
42 | */ | 42 | */ | ||
43 | KShapeGesture(); | 43 | KShapeGesture(); | ||
44 | 44 | | |||
45 | /** | 45 | /** | ||
46 | * Creates a new gesture consisting of given shape. | 46 | * Creates a new gesture consisting of given shape. | ||
47 | * If the gesture belongs to a KAction, and the user draws approximately the same shape | 47 | * If the gesture belongs to a QAction, and the user draws approximately the same shape | ||
48 | * on the screen while holding down the right mouse button, the action will trigger. | 48 | * on the screen while holding down the right mouse button, the action will trigger. | ||
49 | * @p shape must be a "reasonable" polygon. It must contain at least two points | 49 | * @p shape must be a "reasonable" polygon. It must contain at least two points | ||
50 | * and it should contain at most 50 for performance reasons. No two consecutive points | 50 | * and it should contain at most 50 for performance reasons. No two consecutive points | ||
51 | * are allowed to be at the same position. | 51 | * are allowed to be at the same position. | ||
52 | * @param shape shape to draw to trigger this gesture | 52 | * @param shape shape to draw to trigger this gesture | ||
53 | */ | 53 | */ | ||
54 | KShapeGesture(const QPolygon &shape); | 54 | KShapeGesture(const QPolygon &shape); | ||
55 | 55 | | |||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |