]> sigrok.org Git - pulseview.git/blobdiff - pv/session.hpp
Fix #1448 by using different captions for the Run button
[pulseview.git] / pv / session.hpp
index 211fe1b32fcf2bba13e1963bf5b67c9066cba0df..f4d150dbe0031133afbd2497db3c4947a047c01b 100644 (file)
@@ -38,7 +38,7 @@
 #include <QObject>
 #include <QSettings>
 #include <QString>
-#include <QTime>
+#include <QElapsedTimer>
 
 #ifdef ENABLE_FLOW
 #include <gstreamermm.h>
@@ -172,6 +172,8 @@ public:
 
        void set_default_device();
 
+       bool using_file_device() const;
+
        void load_init_file(const string &file_name, const string &format,
                const string &setup_file_name);
 
@@ -264,8 +266,7 @@ Q_SIGNALS:
 
        void data_received();
 
-       void add_view(const QString &title, views::ViewType type,
-               Session *session);
+       void add_view(views::ViewType type, Session *session);
 
 public Q_SLOTS:
        void on_data_saved();
@@ -307,7 +308,7 @@ private:
        bool data_saved_;
        bool frame_began_;
 
-       QTime acq_time_;
+       QElapsedTimer acq_time_;
 
 #ifdef ENABLE_FLOW
        RefPtr<Pipeline> pipeline_;