初步重构
This commit is contained in:
@@ -16,12 +16,12 @@ QWidget* SweepFrequencyWidget::createSpectrogramPowerPlot() {
|
||||
public:
|
||||
YSG::Axis *xAxis{};
|
||||
YSG::Axis *yAxis{};
|
||||
YSG::MutiSelectRect *msr{};
|
||||
YSG::SweepFrequent* sf{};
|
||||
YSG::Muti_Select_Rect *msr{};
|
||||
YSG::Sweep_Frequent* sf{};
|
||||
QMenu *mMenu{};
|
||||
void init() override {
|
||||
Plot::init();
|
||||
mObjectName = "AxisTestPlot";
|
||||
object_name = "AxisTestPlot";
|
||||
|
||||
|
||||
xAxis = YSG::Axis::Builder(this, Qt::Horizontal)
|
||||
@@ -33,14 +33,14 @@ QWidget* SweepFrequencyWidget::createSpectrogramPowerPlot() {
|
||||
.set_tick_length(-10).build();
|
||||
|
||||
|
||||
sf = YSG::SweepFrequent::Builder(xAxis, yAxis)
|
||||
sf = YSG::Sweep_Frequent::Builder(xAxis, yAxis)
|
||||
.set_block_num(200)
|
||||
.set_block_frequent_point_size(20)
|
||||
.set_frequent_range({0 , 100})
|
||||
.build();
|
||||
|
||||
|
||||
msr = YSG::MutiSelectRect::Builder(xAxis, yAxis).build();
|
||||
msr = YSG::Muti_Select_Rect::Builder(xAxis, yAxis).build();
|
||||
}
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent* event) override {
|
||||
|
||||
Reference in New Issue
Block a user