MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / deactivateButtons

Method deactivateButtons

ASAP/WorkstationToolbar.cpp:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void WorkstationToolbar::deactivateButtons()
65{
66 const char icons[NUMBER_OF_BUTTONS][INACTIVE_BUTTON_NAME_LENGTH] =
67 {":/inactive_dot_____.xpm", ":/inactive_poly____.xpm", ":/inactive_freehand.xpm", ":/inactive_spline__.xpm"};
68
69 for (int i=0; i<NUMBER_OF_BUTTONS; i++)
70 {
71 QToolButton* qToolButton = _buttons.at(i);
72 QPixmap qPixmap(icons[i]);
73 qToolButton->setText(icons[i]);
74 qToolButton->setIcon(QIcon(qPixmap));
75 qToolButton->setCheckable(false);
76 }
77}

Callers

nothing calls this directly

Calls 1

atMethod · 0.80

Tested by

no test coverage detected