Changeset View
Changeset View
Standalone View
Standalone View
plugins/flake/textshape/kotext/KoInlineObject.h
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 53 | public: | |||
---|---|---|---|---|---|
164 | * should happen at the position indicated by the rect, not at top-left. | 164 | * should happen at the position indicated by the rect, not at top-left. | ||
165 | * @param rect the rectangle inside which the variable can paint itself. Painting outside the rect | 165 | * @param rect the rectangle inside which the variable can paint itself. Painting outside the rect | ||
166 | * will give varous problems with regards to repainting issues. | 166 | * will give varous problems with regards to repainting issues. | ||
167 | */ | 167 | */ | ||
168 | virtual void paint(QPainter &painter, QPaintDevice *pd, const QTextDocument *document, | 168 | virtual void paint(QPainter &painter, QPaintDevice *pd, const QTextDocument *document, | ||
169 | const QRectF &rect, const QTextInlineObject &object, int posInDocument, const QTextCharFormat &format) = 0; | 169 | const QRectF &rect, const QTextInlineObject &object, int posInDocument, const QTextCharFormat &format) = 0; | ||
170 | 170 | | |||
171 | /** | 171 | /** | ||
172 | * Overwrite this if you are interrested in propertychanges. | 172 | * Overwrite this if you are interested in propertychanges. | ||
173 | * @param property the property id that has been changed, one from the Property enum. | 173 | * @param property the property id that has been changed, one from the Property enum. | ||
174 | * You should ignore all properties you don't use as new properties can be added at any time. | 174 | * You should ignore all properties you don't use as new properties can be added at any time. | ||
175 | * @param value the new value of the property wrapped in a QVariant. Properties can be a lot of | 175 | * @param value the new value of the property wrapped in a QVariant. Properties can be a lot of | ||
176 | * different class types. Ints, bools, QStrings etc. | 176 | * different class types. Ints, bools, QStrings etc. | ||
177 | * example: | 177 | * example: | ||
178 | * @code | 178 | * @code | ||
179 | * void KoDateVariable::propertyChanged(Property key, const QVariant &value) { | 179 | * void KoDateVariable::propertyChanged(Property key, const QVariant &value) { | ||
180 | * if(key == KoInlineObject::PageCount) | 180 | * if(key == KoInlineObject::PageCount) | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |