]> sigrok.org Git - pulseview.git/blobdiff - pv/toolbars/samplingbar.h
Replace map by list to preserve device order
[pulseview.git] / pv / toolbars / samplingbar.h
index 7c0ec9af2d75a2d29577e7d5126f1b2c78c717ee..d8d81219659e9a0cc19ca496ef8e11a6fcb2b234 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <stdint.h>
 
-#include <map>
+#include <list>
 #include <memory>
 
 #include <QComboBox>
@@ -62,8 +62,7 @@ public:
        SamplingBar(SigSession &session, QWidget *parent);
 
        void set_device_list(
-               const std::map< std::shared_ptr<sigrok::Device>, std::string >
-                       &device_names,
+               const std::list< std::pair<std::shared_ptr<sigrok::Device>, std::string> > &devices,
                std::shared_ptr<sigrok::Device> selected);
 
        std::shared_ptr<sigrok::Device> get_selected_device() const;