Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/KReportScriptLine.h
Show All 39 Lines | 38 | public: | |||
---|---|---|---|---|---|
40 | 40 | | |||
41 | ~Line() override; | 41 | ~Line() override; | ||
42 | 42 | | |||
43 | public Q_SLOTS: | 43 | public Q_SLOTS: | ||
44 | /** | 44 | /** | ||
45 | * Return the start position of the line | 45 | * Return the start position of the line | ||
46 | * @return start position | 46 | * @return start position | ||
47 | */ | 47 | */ | ||
48 | QPointF startPosition(); | 48 | QPointF startPosition() const; | ||
49 | 49 | | |||
50 | /** | 50 | /** | ||
51 | * Set the start position of the line | 51 | * Set the start position of the line | ||
52 | * @param StartPosition | 52 | * @param startPosition | ||
53 | */ | 53 | */ | ||
54 | void setStartPosition(const QPointF&); | 54 | void setStartPosition(const QPointF& startPosition); | ||
55 | 55 | | |||
56 | /** | 56 | /** | ||
57 | * Return the end position of the line | 57 | * Return the end position of the line | ||
58 | * @return end position | 58 | * @return end position | ||
59 | */ | 59 | */ | ||
60 | QPointF endPosition(); | 60 | QPointF endPosition() const; | ||
61 | 61 | | |||
62 | /** | 62 | /** | ||
63 | * Set the end position of the line | 63 | * Set the end position of the line | ||
64 | * @param EndPosition | 64 | * @param endPosition | ||
65 | */ | 65 | */ | ||
66 | void setEndPosition(const QPointF&); | 66 | void setEndPosition(const QPointF& endPosition); | ||
67 | 67 | | |||
68 | /** | 68 | /** | ||
69 | * Return the color of the line | 69 | * Return the color of the linelineColor | ||
70 | * @return line color | 70 | * @return line color | ||
71 | */ | 71 | */ | ||
72 | QColor lineColor(); | 72 | QColor lineColor() const; | ||
73 | 73 | | |||
74 | /** | 74 | /** | ||
75 | * Sets the line color | 75 | * Sets the line color | ||
76 | * @param LineColor | 76 | * @param lineColor | ||
77 | */ | 77 | */ | ||
78 | void setLineColor(const QColor&); | 78 | void setLineColor(const QColor& lineColor); | ||
79 | 79 | | |||
80 | /** | 80 | /** | ||
81 | * Return the weight (width) of the line | 81 | * Return the weight (width) of the line | ||
82 | * @return Weight | 82 | * @return Weight | ||
83 | */ | 83 | */ | ||
84 | int lineWeight(); | 84 | int lineWeight() const; | ||
85 | 85 | | |||
86 | /** | 86 | /** | ||
87 | * Set the weight (width) of the line | 87 | * Set the weight (width) of the line | ||
88 | * @param Weight | 88 | * @param weight | ||
89 | */ | 89 | */ | ||
90 | void setLineWeight(int); | 90 | void setLineWeight(int const weight); | ||
91 | 91 | | |||
92 | /** | 92 | /** | ||
93 | * Return the line style. Valid values are those from Qt::PenStyle (0-5) | 93 | * Return the line style. Valid values are those from Qt::PenStyle (0-5) | ||
94 | * @return Style | 94 | * @return Style | ||
95 | */ | 95 | */ | ||
96 | int lineStyle(); | 96 | int lineStyle() const; | ||
97 | | ||||
98 | 97 | | |||
99 | /** | 98 | /** | ||
100 | * Set the style of the line | 99 | * Set the style of the line | ||
101 | * @param Style From Qt::PenStyle (0-5) | 100 | * @param style From Qt::PenStyle (0-5) | ||
102 | */ | 101 | */ | ||
103 | void setLineStyle(int); | 102 | void setLineStyle(int style); | ||
104 | 103 | | |||
105 | private: | 104 | private: | ||
106 | KReportItemLine *m_line; | 105 | KReportItemLine *m_line; | ||
107 | 106 | | |||
108 | }; | 107 | }; | ||
109 | 108 | | |||
110 | } | 109 | } | ||
111 | 110 | | |||
112 | #endif | 111 | #endif |