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

Method getToolButton

ASAP/annotation/SplineAnnotationTool.cpp:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15QAction* SplineAnnotationTool::getToolButton() {
16 if (!_button) {
17 _button = new QAction("&SplineAnnotation", this);
18 _button->setObjectName(QString::fromStdString(name()));
19 if (QApplication::styleHints()->colorScheme() == Qt::ColorScheme::Dark) {
20 _button->setIcon(QIcon(QPixmap(":/AnnotationWorkstationExtensionPlugin_icons/spline_dark.png")));
21 }
22 else {
23 _button->setIcon(QIcon(QPixmap(":/AnnotationWorkstationExtensionPlugin_icons/spline.png")));
24 }
25 _button->setShortcut(QKeySequence("s"));
26 }
27 return _button;
28}
29
30std::string SplineAnnotationTool::name() {
31 return std::string("splineannotation");

Callers

nothing calls this directly

Calls 1

QPixmapClass · 0.50

Tested by

no test coverage detected