]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/property.cpp
Fix random clazy warnings
[pulseview.git] / pv / prop / property.cpp
index 0a14d241ec1e5921b1acef729ced9d73377b4762..557c2a996d7b766bfedfd046a093315f017d65ae 100644 (file)
  * 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 <http://www.gnu.org/licenses/>.
  */
 
-#include "property.h"
+#include "property.hpp"
 
 namespace pv {
 namespace prop {
 
-Property::Property(QString name) :
-       _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