| 30 | } |
| 31 | |
| 32 | QAction* 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 | |
| 47 | std::string PointSetAnnotationTool::name() { |
| 48 | return std::string("pointsetannotation"); |