Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SofaGuiQt] Tooltips #2139

Merged
merged 3 commits into from
Jun 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions modules/SofaGuiQt/src/sofa/gui/qt/SofaWindowProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,21 @@ void SofaWindowProfiler::createTreeView()
columnNames << "Hierarchy Step Name" << "Total (%)" << "Self (%)" << "Time (ms)" << "Self (ms)";
tree_steps->setHeaderLabels(columnNames);

tree_steps->headerItem()->setToolTip(1, QString("Percentage of duration of this step compared to the duration of the root step"));
tree_steps->headerItem()->setToolTip(2,
QString("- If the step has child steps: percentage of the duration "
"of this step minus the sum of durations of its children, compared to "
epernod marked this conversation as resolved.
Show resolved Hide resolved
"the duration of the root step.\n"
"- If the step has no child step: percentage of the average duration "
"of this step in case of multiple calls of this step during this time step, "
"compared to the duration of the root step."));
tree_steps->headerItem()->setToolTip(3, QString("Duration in milliseconds of this step"));
tree_steps->headerItem()->setToolTip(4,
QString("- If the step has child steps: duration in milliseconds of "
"this step minus the sum of durations of its children.\n"
"- If the step has no child step: average duration in milliseconds of "
"this step in case of multiple calls of this step during this time step."));

// set column properties
tree_steps->header()->setStretchLastSection(false);
tree_steps->header()->setSectionResizeMode(0, QHeaderView::Stretch);
Expand Down