I see what you mean. This will become rather lengthy though. As its needed in SystemHealthGadgetWidget::showAllAlarmDescriptions as well as in SystemHealthGadgetWidget::showAlarmDescriptionForItemId would it probably make sense to put it in another SystemHealthGadgetWidget:: function?