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

Method activateButtons

ASAP/WorkstationToolbar.cpp:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49void WorkstationToolbar::activateButtons()
50{
51 const char icons[NUMBER_OF_BUTTONS][BUTTON_NAME_LENGTH] =
52 {":/dot_____.xpm", ":/poly____.xpm", ":/freehand.xpm", ":/spline__.xpm"};
53
54 for (int i=0; i<NUMBER_OF_BUTTONS; i++)
55 {
56 QToolButton* qToolButton = _buttons.at(i);
57 QPixmap qPixmap(icons[i]);
58 qToolButton->setText(icons[i]);
59 qToolButton->setIcon(QIcon(qPixmap));
60 qToolButton->setCheckable(true);
61 }
62}
63
64void WorkstationToolbar::deactivateButtons()
65{

Callers

nothing calls this directly

Calls 1

atMethod · 0.80

Tested by

no test coverage detected