MCPcopy Create free account
hub / github.com/Geant4/geant4 / SetIconWireframeSelected

Method SetIconWireframeSelected

source/interfaces/implementation/src/G4UIQt.cc:6157–6185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6155}
6156
6157void 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
6187void G4UIQt::SetIconHLRSelected()
6188{

Callers 2

UpdateDrawingStyleMethod · 0.95

Calls 2

toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected