MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / addCommandButton

Method addCommandButton

src/gui/task_dialog.cpp:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61QCommandLinkButton* 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
71void TaskDialog::buttonClicked(QWidget* button)
72{

Callers 1

postLoadSetupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected