equal
deleted
inserted
replaced
355 m_systemLanguage = locale.name().replace(QLatin1Char('_'), QLatin1Char('-')); |
355 m_systemLanguage = locale.name().replace(QLatin1Char('_'), QLatin1Char('-')); |
356 int idx = m_systemLanguage.indexOf(QLatin1Char('-')); |
356 int idx = m_systemLanguage.indexOf(QLatin1Char('-')); |
357 m_systemLanguagePrefix = m_systemLanguage.mid(0, idx); |
357 m_systemLanguagePrefix = m_systemLanguage.mid(0, idx); |
358 } |
358 } |
359 |
359 |
360 QRectF QSvgStructureNode::bounds() const |
360 QRectF QSvgStructureNode::bounds(QPainter *p, QSvgExtraStates &states) const |
361 { |
361 { |
362 if (m_bounds.isEmpty()) { |
362 QRectF bounds; |
363 foreach(QSvgNode *node, m_renderers) { |
363 foreach(QSvgNode *node, m_renderers) |
364 m_bounds |= node->transformedBounds(QTransform()); |
364 bounds |= node->transformedBounds(p, states); |
365 } |
365 return bounds; |
366 } |
|
367 |
|
368 return m_bounds; |
|
369 } |
366 } |
370 |
367 |
371 QSvgNode * QSvgStructureNode::previousSiblingNode(QSvgNode *n) const |
368 QSvgNode * QSvgStructureNode::previousSiblingNode(QSvgNode *n) const |
372 { |
369 { |
373 QSvgNode *prev = 0; |
370 QSvgNode *prev = 0; |