| 186 | } |
| 187 | |
| 188 | KDChart::TextLayoutItem::TextLayoutItem(const QString &text, |
| 189 | const KDChart::TextAttributes &attributes, |
| 190 | const QObject *area, |
| 191 | KDChartEnums::MeasureOrientation orientation, |
| 192 | Qt::Alignment alignment) |
| 193 | : AbstractLayoutItem(alignment) |
| 194 | , mText(text) |
| 195 | , mTextAlignment(alignment) |
| 196 | , mAttributes(attributes) |
| 197 | , mAutoReferenceArea(area) |
| 198 | , mAutoReferenceOrientation(orientation) |
| 199 | , cachedSizeHint() // default this to invalid to force just-in-time calculation before first use of sizeHint() |
| 200 | , cachedFontSize(0.0) |
| 201 | , cachedFont(mAttributes.font()) |
| 202 | { |
| 203 | } |
| 204 | |
| 205 | KDChart::TextLayoutItem::TextLayoutItem() |
| 206 | : AbstractLayoutItem(Qt::AlignLeft) |