X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fproperty.cpp;h=557c2a996d7b766bfedfd046a093315f017d65ae;hp=c513d51e6f41ae036a9454ed68eca62aa0c56420;hb=b571a8e7e0dc3e3b6daa58f27050e76466f006dd;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/prop/property.cpp b/pv/prop/property.cpp index c513d51e..557c2a99 100644 --- a/pv/prop/property.cpp +++ b/pv/prop/property.cpp @@ -14,8 +14,7 @@ * 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.hpp" @@ -23,10 +22,11 @@ namespace pv { namespace prop { -Property::Property(QString name, Getter getter, Setter setter) : +Property::Property(QString name, QString desc, Getter getter, Setter setter) : getter_(getter), setter_(setter), - name_(name) + name_(name), + desc_(desc) { } @@ -35,10 +35,15 @@ const QString& Property::name() const return name_; } +const QString& Property::desc() const +{ + return desc_; +} + bool Property::labeled_widget() const { return false; } -} // prop -} // pv +} // namespace prop +} // namespace pv