Skip to content

Commit

Permalink
dac: info button added options for tutorial and documentation
Browse files Browse the repository at this point in the history
Signed-off-by: IonutMuthi <[email protected]>
  • Loading branch information
IonutMuthi committed Nov 21, 2024
1 parent bb76a23 commit acd996a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/dac/src/dacinstrument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ DacInstrument::DacInstrument(const Connection *conn, QWidget *parent)
openLastMenuBtn = new OpenLastMenuBtn(dynamic_cast<MenuHAnim *>(tool->rightContainer()), true, this);
rightMenuBtnGrp = dynamic_cast<OpenLastMenuBtn *>(openLastMenuBtn)->getButtonGroup();

infoBtn = new InfoBtn(this);
infoBtn = new InfoBtn(this, true);
settingsBtn = new GearBtn(this);

devicesGroup = new QButtonGroup(this);
Expand All @@ -71,7 +71,9 @@ DacInstrument::DacInstrument(const Connection *conn, QWidget *parent)
rightMenuBtnGrp->addButton(settingsBtn);
rightMenuBtnGrp->addButton(devicesBtn->button());

connect(infoBtn, &QAbstractButton::clicked, this, [=, this]() {
connect(infoBtn->getTutorialButton(), &QPushButton::clicked, this, [=]() { this->startTutorial(); });

connect(infoBtn->getDocumentationButton(), &QAbstractButton::clicked, this, [=, this]() {
QDesktopServices::openUrl(QUrl("https://analogdevicesinc.github.io/scopy/plugins/dac/dac.html"));
});
connect(devicesBtn, &QPushButton::toggled, dynamic_cast<MenuHAnim *>(tool->leftContainer()),
Expand Down

0 comments on commit acd996a

Please sign in to comment.