Skip to content

Commit

Permalink
datalogger: infor 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 1adc020 commit eecbc3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/datalogger/src/datamonitortool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,20 @@ DatamonitorTool::DatamonitorTool(DataAcquisitionManager *dataAcquisitionManager,
openLastMenuBtn = new OpenLastMenuBtn(dynamic_cast<MenuHAnim *>(tool->rightContainer()), true, this);
rightMenuBtnGrp = dynamic_cast<OpenLastMenuBtn *>(openLastMenuBtn)->getButtonGroup();

infoBtn = new InfoBtn(this);
printplotManager = new PrintPlotManager(this);
runBtn = new RunBtn(this);
clearBtn = new QPushButton("Clear", this);
PrintBtn *printBtn = new PrintBtn(this);

// connect(infoBtn, &QPushButton::clicked, this, &DatamonitorTool::startTutorial);
connect(infoBtn, &QAbstractButton::clicked, this, [=, this]() {
infoBtn = new InfoBtn(this, true);

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

connect(infoBtn->getDocumentationButton(), &QPushButton::clicked, this, [=]() {
QDesktopServices::openUrl(
QUrl("https://analogdevicesinc.github.io/scopy/plugins/datalogger/datalogger.html"));
});

// connect(infoBtn, &QPushButton::clicked, this, &DatamonitorTool::startTutorial);

//// add monitors
addMonitorButton = new AddBtn(this);

Expand Down

0 comments on commit eecbc3a

Please sign in to comment.