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

Method getToolButton

ASAP/annotation/PointSetAnnotationTool.cpp:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32QAction* PointSetAnnotationTool::getToolButton() {
33 if (!_button) {
34 _button = new QAction("PointSetAnnotation", this);
35 _button->setObjectName(QString::fromStdString(name()));
36 if (QApplication::styleHints()->colorScheme() == Qt::ColorScheme::Dark) {
37 _button->setIcon(QIcon(QPixmap(":/AnnotationWorkstationExtensionPlugin_icons/pointset_dark.png")));
38 }
39 else {
40 _button->setIcon(QIcon(QPixmap(":/AnnotationWorkstationExtensionPlugin_icons/pointset.png")));
41 }
42 _button->setShortcut(QKeySequence("i"));
43 }
44 return _button;
45}
46
47std::string PointSetAnnotationTool::name() {
48 return std::string("pointsetannotation");

Callers

nothing calls this directly

Calls 1

QPixmapClass · 0.50

Tested by

no test coverage detected