Skip to content

Commit cfe6756

Browse files
committed
ADC: TimePlotComponent remove redunudant units
Signed-off-by: Andrei Popa <andrei.popa@analog.com>
1 parent f86ec07 commit cfe6756

File tree

4 files changed

+0
-7
lines changed

4 files changed

+0
-7
lines changed

plugins/adc/src/time/grtimechannelcomponent.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ void GRTimeChannelComponent::setYModeHelper(YMode mode)
265265
ymax = 1 << (fmt->bits);
266266
}
267267
m_timePlotComponentChannel->m_timePlotYAxis->setUnits("");
268-
m_timePlotComponentChannel->m_timePlotYAxis->setUnits("");
269268
m_timePlotComponentChannel->m_timePlotYAxis->scaleDraw()->setFloatPrecision(3);
270269
m_timePlotComponentChannel->m_timePlotYAxis->getFormatter()->setTwoDecimalMode(false);
271270
break;

plugins/adc/src/time/timeplotcomponent.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ TimePlotComponent::TimePlotComponent(QString name, uint32_t uuid, QWidget *paren
7474
m_plotLayout->addWidget(m_timePlot);
7575
m_plotLayout->addWidget(m_xyPlot);
7676

77-
// Need to set this for some reason .. spinboxes should be refactored
78-
m_timePlot->yAxis()->setUnits("V");
79-
8077
m_plotMenu = new TimePlotComponentSettings(this, parent);
8178
addComponent(m_plotMenu);
8279

plugins/adc/src/time/timeplotcomponentchannel.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ adc::TimePlotComponentChannel::TimePlotComponentChannel(ChannelComponent *ch, Ti
4141
m_plotComponent = nullptr;
4242
initPlotComponent(plotComponent);
4343

44-
m_timePlotYAxis->setUnits("V");
45-
m_timePlotCh->xAxis()->setUnits("s");
4644
m_timePlotYAxis->setInterval(-2048, 2048);
4745
m_xyPlotYAxis->setInterval(-2048, 2048);
4846
}

tmp/grutil/src/grtimeplotaddonsettings.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ QWidget *GRTimePlotAddonSettings::createYAxisMenu(QWidget *parent)
6868
MenuCollapseSection *yaxis = new MenuCollapseSection("Y-AXIS", MenuCollapseSection::MHCW_NONE,
6969
MenuCollapseSection::MHW_BASEWIDGET, yaxiscontainer);
7070

71-
m_plot->plot()->yAxis()->setUnits("V");
7271
m_yctrl = new MenuPlotAxisRangeControl(m_plot->plot()->yAxis(), yaxis);
7372
m_singleYModeSw = new MenuOnOffSwitch("Single Y Mode", yaxis);
7473
m_autoscaleBtn = new QPushButton("Autoscale", yaxis);

0 commit comments

Comments
 (0)