X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fprop%2Fint.cpp;h=98b23ba6386401adc172817e188178bb8d0d4f78;hb=5f9b7de5c8c71801141d35497786bf57f75e3ca4;hp=d791bd96b05d0846b40d52dc476fdddec135420d;hpb=0402d7a3e425c56321234e4bb546d9b698c6d237;p=pulseview.git diff --git a/pv/prop/int.cpp b/pv/prop/int.cpp index d791bd96..98b23ba6 100644 --- a/pv/prop/int.cpp +++ b/pv/prop/int.cpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#include #include +#include #include @@ -33,11 +33,12 @@ namespace pv { namespace prop { Int::Int(QString name, + QString desc, QString suffix, optional< pair > range, Getter getter, Setter setter) : - Property(name, getter, setter), + Property(name, desc, getter, setter), suffix_(suffix), range_(range), spin_box_(nullptr) @@ -140,8 +141,7 @@ void Int::commit() new_value = g_variant_new_int64(spin_box_->value()); else if (g_variant_type_equal(type, G_VARIANT_TYPE_UINT64)) new_value = g_variant_new_uint64(spin_box_->value()); - else - { + else { // Unexpected value type. assert(false); } @@ -158,5 +158,5 @@ void Int::on_value_changed(int) commit(); } -} // prop -} // pv +} // namespace prop +} // namespace pv