refactor: 去掉多余的显示点数控件,来一个点画一个点,自动滚动
- 移除SpinBox和onDisplayPointsChanged - 内部滚动窗口固定3000个点,数据无限追加 - 收到UDP包立即刷新绘图
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include <QHBoxLayout>
|
||||
#include <QGridLayout>
|
||||
#include <QGroupBox>
|
||||
#include <QSpinBox>
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
|
||||
@@ -31,7 +30,6 @@ private slots:
|
||||
void onOpenFile();
|
||||
void onClear();
|
||||
void onDataReceived(const QByteArray &data);
|
||||
void onDisplayPointsChanged(int count);
|
||||
void onToggleChannel(int channel, bool visible);
|
||||
|
||||
private:
|
||||
@@ -48,7 +46,6 @@ private:
|
||||
QPushButton *m_clearBtn;
|
||||
QLabel *m_statusLabel;
|
||||
QLabel *m_packetLabel;
|
||||
QSpinBox *m_displaySpinBox;
|
||||
PlotWidget *m_plotWidget;
|
||||
|
||||
// 功能组件
|
||||
|
||||
Reference in New Issue
Block a user