X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fprop%2Fint.cpp;h=98b23ba6386401adc172817e188178bb8d0d4f78;hb=379f6ccf486b331a809dde730695af26ec85991d;hp=fd3bfe4708e6a0cb95832e81643421945de5a5eb;hpb=c6246dc56ed01d7e99aa65ab88b8c191300b1ebd;p=pulseview.git
diff --git a/pv/prop/int.cpp b/pv/prop/int.cpp
index fd3bfe4..98b23ba 100644
--- a/pv/prop/int.cpp
+++ b/pv/prop/int.cpp
@@ -14,12 +14,11 @@
* 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
-#include
+#include
+#include
#include
@@ -34,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)
@@ -91,7 +91,7 @@ QWidget* Int::get_widget(QWidget *parent, bool auto_commit)
range_min = 0, range_max = UINT64_MAX;
} else {
// Unexpected value type.
- assert(0);
+ assert(false);
}
// @todo Sigrok supports 64-bit quantities, but Qt does not have a
@@ -141,10 +141,9 @@ 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(0);
+ assert(false);
}
assert(new_value);
@@ -159,5 +158,5 @@ void Int::on_value_changed(int)
commit();
}
-} // prop
-} // pv
+} // namespace prop
+} // namespace pv