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

Method getToolButton

ASAP/annotation/DotAnnotationTool.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26QAction* DotAnnotationTool::getToolButton() {
27 if (!_button) {
28 _button = new QAction("&DotAnnotation", this);
29 _button->setObjectName(QString::fromStdString(name()));
30 if (QApplication::styleHints()->colorScheme() == Qt::ColorScheme::Dark) {
31 _button->setIcon(QIcon(QPixmap(":/AnnotationWorkstationExtensionPlugin_icons/dot_dark.png")));
32 }
33 else {
34 _button->setIcon(QIcon(QPixmap(":/AnnotationWorkstationExtensionPlugin_icons/dot.png")));
35 }
36 _button->setShortcut(QKeySequence("d"));
37 }
38 return _button;
39}
40
41std::string DotAnnotationTool::name() {
42 return std::string("dotannotation");

Callers

nothing calls this directly

Calls 1

QPixmapClass · 0.50

Tested by

no test coverage detected