Skip to content

Commit

Permalink
Add tooltips to CP-Profiler symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
cyderize committed Feb 12, 2023
1 parent 7ac502e commit 53610e9
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion cp-profiler/src/cpprofiler/tree/node_widget.hh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,29 @@ class NodeWidget : public QWidget
{
setMinimumSize(WIDTH, WIDTH);
setMaximumSize(WIDTH, WIDTH);
switch (m_status)
{
case NodeStatus::SOLVED:
setToolTip("Solutions");
break;
case NodeStatus::FAILED:
setToolTip("Failures");
break;
case NodeStatus::SKIPPED:
setToolTip("Skipped");
break;
case NodeStatus::BRANCH:
setToolTip("Branches");
break;
case NodeStatus::UNDETERMINED:
setToolTip("Undetermined");
break;
case NodeStatus::MERGED:
setToolTip("Merged");
break;
default:
break;
}
}

~NodeWidget()
Expand All @@ -91,4 +114,4 @@ class NodeWidget : public QWidget
};

} // namespace tree
} // namespace cpprofiler
} // namespace cpprofiler

0 comments on commit 53610e9

Please sign in to comment.