| 6155 | } |
| 6156 | |
| 6157 | void G4UIQt::SetIconWireframeSelected() |
| 6158 | { |
| 6159 | // Theses actions should be in the app toolbar |
| 6160 | |
| 6161 | QToolBar* toolbar = fToolbarApp; |
| 6162 | if (! fDefaultIcons) { |
| 6163 | toolbar = fToolbarUser; |
| 6164 | } |
| 6165 | if (toolbar == nullptr) return; |
| 6166 | |
| 6167 | QList<QAction*> list = toolbar->actions(); |
| 6168 | for (auto i : list) { |
| 6169 | if (i->data().toString() == "wireframe") { |
| 6170 | i->setChecked(true); |
| 6171 | } |
| 6172 | else if (i->data().toString() == "hidden_line_removal") { |
| 6173 | i->setChecked(false); |
| 6174 | } |
| 6175 | else if (i->data().toString() == "hidden_line_and_surface_removal") { |
| 6176 | i->setChecked(false); |
| 6177 | } |
| 6178 | else if (i->data().toString() == "solid") { |
| 6179 | i->setChecked(false); |
| 6180 | } |
| 6181 | else if (i->data().toString() == "point_cloud") { |
| 6182 | i->setChecked(false); |
| 6183 | } |
| 6184 | } |
| 6185 | } |
| 6186 | |
| 6187 | void G4UIQt::SetIconHLRSelected() |
| 6188 | { |
no test coverage detected