]> sigrok.org Git - pulseview.git/blobdiff - pv/views/viewbase.hpp
Supply the segment ID when adding samples to optimize trace painting
[pulseview.git] / pv / views / viewbase.hpp
index 8e71f3bbe221c9b05a0ee36cd84c7a713483e974..c8f72ab7a3caf9e6005379bd253e779974c5b73a 100644 (file)
@@ -100,6 +100,9 @@ public Q_SLOTS:
        virtual void perform_delayed_view_update();
 
 private Q_SLOTS:
+       void on_samples_added(QObject* segment, uint64_t start_sample,
+               uint64_t end_sample);
+
        void on_data_updated();
 
 protected:
@@ -111,6 +114,9 @@ protected:
 
        unordered_set< shared_ptr<data::SignalBase> > signalbases_;
 
+       /// The ID of the currently displayed segment
+       uint32_t current_segment_;
+
        QTimer delayed_view_updater_;
 };