| 59 | } |
| 60 | |
| 61 | QCommandLinkButton* TaskDialog::addCommandButton(const QString& text, const QString& description) |
| 62 | { |
| 63 | QCommandLinkButton* button = new QCommandLinkButton(text, description); |
| 64 | signal_mapper->setMapping(button, button); |
| 65 | connect(button, QOverload<bool>::of(&QAbstractButton::clicked), signal_mapper, QOverload<>::of(&QSignalMapper::map)); |
| 66 | |
| 67 | layout->insertWidget(layout->count() - (button_box ? 1 : 0), button); |
| 68 | return button; |
| 69 | } |
| 70 | |
| 71 | void TaskDialog::buttonClicked(QWidget* button) |
| 72 | { |