Use getter for the conversion type instead of a local copy
[pulseview.git] / pv / views / trace / analogsignal.hpp
index a1b3eeefac0139e916921a167322404acb1c8ab3..07b667119b6a7e78a9633971aa2afaa1da9a9075 100644 (file)
@@ -144,8 +144,6 @@ private:
 
        void update_scale();
 
-       void update_conversion_type();
-
        void perform_autoranging(bool keep_divs, bool force_update);
 
 protected:
@@ -156,6 +154,7 @@ private Q_SLOTS:
 
        void on_pos_vdivs_changed(int vdivs);
        void on_neg_vdivs_changed(int vdivs);
+       void on_div_height_changed(int height);
 
        void on_resolution_changed(int index);
 
@@ -167,7 +166,7 @@ private Q_SLOTS:
 
 private:
        QComboBox *resolution_cb_, *conversion_cb_, *display_type_cb_;
-       QSpinBox *pvdiv_sb_, *nvdiv_sb_;
+       QSpinBox *pvdiv_sb_, *nvdiv_sb_, *div_height_sb_;
 
        float scale_;
        int scale_index_;
@@ -177,7 +176,6 @@ private:
        int pos_vdivs_, neg_vdivs_;  // divs per positive/negative side
        float resolution_; // e.g. 10 for 10 V/div
 
-       data::SignalBase::ConversionType conversion_type_;
        DisplayType display_type_;
        bool autoranging_;
 };