src/svg/qsvgstructure.cpp
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
   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;