* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#include <cstdint>
#include <cassert>
+#include <cstdint>
#include <QSpinBox>
namespace prop {
Int::Int(QString name,
+ QString desc,
QString suffix,
optional< pair<int64_t, int64_t> > range,
Getter getter,
Setter setter) :
- Property(name, getter, setter),
+ Property(name, desc, getter, setter),
suffix_(suffix),
range_(range),
spin_box_(nullptr)
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);
}
commit();
}
-} // prop
-} // pv
+} // namespace prop
+} // namespace pv