MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / repaint

Method repaint

file_plugins/gerber/gbrnode.cpp:151–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149QTimer* Node::decorationTimer() { return &m_decorationTimer; }
150
151void 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
161void Node::menu(QMenu& menu, FileTree::View* tv) const
162{

Callers

nothing calls this directly

Calls 2

childCountMethod · 0.45
setColorMethod · 0.45

Tested by

no test coverage detected