| 313 | } |
| 314 | |
| 315 | KTextEditor::Attribute::Ptr CodeHighlighting::attributeForDepth(int depth) const |
| 316 | { |
| 317 | while (depth >= m_depthAttributes.count()) { |
| 318 | KTextEditor::Attribute::Ptr a(new KTextEditor::Attribute()); |
| 319 | a->setBackground(QColor(Qt::white).darker(100 + (m_depthAttributes.count() * 25))); |
| 320 | a->setBackgroundFillWhitespace(true); |
| 321 | if (depth % 2) |
| 322 | a->setOutline(Qt::red); |
| 323 | m_depthAttributes.append(a); |
| 324 | } |
| 325 | |
| 326 | return m_depthAttributes[depth]; |
| 327 | } |
| 328 | |
| 329 | KDevelop::Declaration* CodeHighlightingInstance::localClassFromCodeContext(KDevelop::DUContext* context) const |
| 330 | { |