]> sigrok.org Git - pulseview.git/blobdiff - pv/view/view.hpp
Use typesafe enum classes in pv::util
[pulseview.git] / pv / view / view.hpp
index 12527b656d80943f2abb8d69039d33729d45adc0..ed1c92633da5348384e6f4081f185448986656df 100644 (file)
@@ -123,7 +123,7 @@ public:
        /**
         * Returns the SI prefix to apply to the graticule time markings.
         */
-       unsigned int tick_prefix() const;
+       pv::util::SIPrefix tick_prefix() const;
 
        /**
         * Returns the number of fractional digits shown for the time markings.
@@ -319,7 +319,7 @@ private:
        QTimer delayed_view_updater_;
 
        double tick_period_;
-       unsigned int tick_prefix_;
+       pv::util::SIPrefix tick_prefix_;
        unsigned int tick_precision_;
        util::TimeUnit time_unit_;