| 149 | QTimer* Node::decorationTimer() { return &m_decorationTimer; } |
| 150 | |
| 151 | void Node::repaint() const |
| 152 | { |
| 153 | if (!m_parent) |
| 154 | return; |
| 155 | const int count = m_parent->childCount(); |
| 156 | const int k = static_cast<int>((count > 1) ? (200.0 / (count - 1)) * row() : 0); |
| 157 | file->setColor(QColor::fromHsv(k, 255, 255, 150)); |
| 158 | emit App::fileModel()->dataChanged(index(0), index(0), { Qt::DecorationRole }); |
| 159 | } |
| 160 | |
| 161 | void Node::menu(QMenu& menu, FileTree::View* tv) const |
| 162 | { |
nothing calls this directly
no test coverage detected