From: Joel Holdsworth Date: Sun, 16 Nov 2014 18:55:24 +0000 (+0000) Subject: Trace: Renamed get_name() to name() X-Git-Tag: pulseview-0.3.0~481 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0a47889b01386b1e55c7df73ca301046a195ff97;p=pulseview.git Trace: Renamed get_name() to name() --- diff --git a/pv/popups/channels.cpp b/pv/popups/channels.cpp index f93734a1..f6b5aa14 100644 --- a/pv/popups/channels.cpp +++ b/pv/popups/channels.cpp @@ -183,7 +183,7 @@ QGridLayout* Channels::create_channel_group_grid( { assert(sig); - QCheckBox *const checkbox = new QCheckBox(sig->get_name()); + QCheckBox *const checkbox = new QCheckBox(sig->name()); _check_box_mapper.setMapping(checkbox, checkbox); connect(checkbox, SIGNAL(toggled(bool)), &_check_box_mapper, SLOT(map())); diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 4f26842f..d1f3a606 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -274,7 +274,7 @@ bool SigSession::add_decoder(srd_decoder *const dec) dynamic_pointer_cast(s); if (l && QString::fromUtf8(pdch->name). toLower().contains( - l->get_name().toLower())) + l->name().toLower())) channels[pdch] = l; } diff --git a/pv/view/decodetrace.cpp b/pv/view/decodetrace.cpp index 27732971..ae2ec162 100644 --- a/pv/view/decodetrace.cpp +++ b/pv/view/decodetrace.cpp @@ -702,7 +702,7 @@ QComboBox* DecodeTrace::create_channel_selector( if (dynamic_pointer_cast(s) && s->enabled()) { - selector->addItem(s->get_name(), + selector->addItem(s->name(), qVariantFromValue((void*)s.get())); if ((*channel_iter).second == s) selector->setCurrentIndex(i + 1); diff --git a/pv/view/trace.cpp b/pv/view/trace.cpp index aba51510..367891a2 100644 --- a/pv/view/trace.cpp +++ b/pv/view/trace.cpp @@ -48,7 +48,7 @@ Trace::Trace(QString name) : { } -QString Trace::get_name() const +QString Trace::name() const { return _name; } diff --git a/pv/view/trace.h b/pv/view/trace.h index ef327edb..7cfa3c2e 100644 --- a/pv/view/trace.h +++ b/pv/view/trace.h @@ -56,7 +56,7 @@ public: /** * Gets the name of this signal. */ - QString get_name() const; + QString name() const; /** * Sets the name of the signal.