| 477 | } |
| 478 | |
| 479 | IdealToolButton* IdealButtonBarWidget::button(const QString& id) const |
| 480 | { |
| 481 | const auto actions = this->actions(); |
| 482 | for (QAction* a : actions) { |
| 483 | auto tva = qobject_cast<ToolViewAction*>(a); |
| 484 | if (tva && tva->id() == id) { |
| 485 | return tva->button(); |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | return nullptr; |
| 490 | } |
| 491 | |
| 492 | void IdealButtonBarWidget::addButtonToOrder(const IdealToolButton* button) |
| 493 | { |