]> sigrok.org Git - pulseview.git/commitdiff
MainBar: Correct event handler name
authorSoeren Apel <redacted>
Wed, 30 Nov 2016 07:32:56 +0000 (08:32 +0100)
committerSoeren Apel <redacted>
Sun, 4 Dec 2016 13:37:38 +0000 (14:37 +0100)
pv/toolbars/mainbar.cpp
pv/toolbars/mainbar.hpp

index e77f18bb4e7ec861f32c55ccc38377080d9e5724..2c64867f89ca3f4d566814ec7be90262bf2bea05 100644 (file)
@@ -227,7 +227,7 @@ MainBar::MainBar(Session &session, QWidget *parent,
 
        // Setup session_ events
        connect(&session_, SIGNAL(capture_state_changed(int)),
-               this, SLOT(capture_state_changed(int)));
+               this, SLOT(on_capture_state_changed(int)));
        connect(&session, SIGNAL(device_changed()),
                this, SLOT(on_device_changed()));
 
@@ -561,11 +561,6 @@ void MainBar::show_session_error(const QString text, const QString info_text)
        msg.exec();
 }
 
-void MainBar::capture_state_changed(int state)
-{
-       set_capture_state((pv::Session::capture_state)state);
-}
-
 void MainBar::add_decoder(srd_decoder *decoder)
 {
 #ifdef ENABLE_DECODE
@@ -715,6 +710,11 @@ void MainBar::on_device_changed()
        update_device_config_widgets();
 }
 
+void MainBar::on_capture_state_changed(int state)
+{
+       set_capture_state((pv::Session::capture_state)state);
+}
+
 void MainBar::on_sample_count_changed()
 {
        if (!updating_sample_count_)
index 50c30fd2a0992ded9b45032aae38888579a64fd0..a47288c736c022b415e5cece48fd9bb81ac68197 100644 (file)
@@ -125,8 +125,6 @@ private:
 private Q_SLOTS:
        void show_session_error(const QString text, const QString info_text);
 
-       void capture_state_changed(int state);
-
        void add_decoder(srd_decoder *decoder);
 
        void export_file(std::shared_ptr<sigrok::OutputFormat> format,
@@ -135,6 +133,7 @@ private Q_SLOTS:
 
        void on_device_selected();
        void on_device_changed();
+       void on_capture_state_changed(int state);
        void on_sample_count_changed();
        void on_sample_rate_changed();