X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fproperty.cpp;h=557c2a996d7b766bfedfd046a093315f017d65ae;hp=8276a191b57b99709bc9eef9c650c10169f62090;hb=9a267f8dec48c9a28472c1a3bb146c624819e98b;hpb=9b25892767cee1d871ac18beb025033e905b28ae diff --git a/pv/prop/property.cpp b/pv/prop/property.cpp index 8276a191..557c2a99 100644 --- a/pv/prop/property.cpp +++ b/pv/prop/property.cpp @@ -14,26 +14,36 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ -#include "property.h" +#include "property.hpp" namespace pv { namespace prop { -Property::Property(QString name, Getter getter, Setter setter) : - _getter(getter), - _setter(setter), - _name(name) +Property::Property(QString name, QString desc, Getter getter, Setter setter) : + getter_(getter), + setter_(setter), + name_(name), + desc_(desc) { } const QString& Property::name() const { - return _name; + return name_; } -} // prop -} // pv +const QString& Property::desc() const +{ + return desc_; +} + +bool Property::labeled_widget() const +{ + return false; +} + +} // namespace prop +} // namespace pv