mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
DatabaseViewer: fixed just 50 last values shown on statistics view
This commit is contained in:
@@ -224,6 +224,7 @@ StatsToolBox::StatsToolBox(QWidget * parent) :
|
||||
_plotMenu = new QMenu(this);
|
||||
_plotMenu->addAction(tr("<New figure>"));
|
||||
_workingDirectory = QDir::homePath();
|
||||
_newFigureMaxItems = 0;
|
||||
}
|
||||
|
||||
StatsToolBox::~StatsToolBox()
|
||||
@@ -437,7 +438,7 @@ void StatsToolBox::plot(const StatItem * stat, const QString & plotName)
|
||||
//Plot
|
||||
UPlot * newPlot = new UPlot(figure);
|
||||
newPlot->setWorkingDirectory(_workingDirectory);
|
||||
newPlot->setMaxVisibleItems(50);
|
||||
newPlot->setMaxVisibleItems(_newFigureMaxItems);
|
||||
newPlot->setObjectName(newPlotName);
|
||||
hLayout->addWidget(newPlot);
|
||||
_plotMenu->addAction(newPlotName);
|
||||
|
||||
Reference in New Issue
Block a user