projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ruler: Prevent ticks from disappearing at high zoom levels
[pulseview.git]
/
pv
/
view
/
view.hpp
diff --git
a/pv/view/view.hpp
b/pv/view/view.hpp
index 90a9b877cb04b164d5bedd8d19f1c244fd1cc848..5f81d443c8f53e08353e91d13b9534b7a6805dd7 100644
(file)
--- a/
pv/view/view.hpp
+++ b/
pv/view/view.hpp
@@
-133,7
+133,7
@@
public:
/**
* Returns period of the graticule time markings.
*/
/**
* Returns period of the graticule time markings.
*/
-
double
tick_period() const;
+
const pv::util::Timestamp&
tick_period() const;
/**
* Returns the unit of time currently used.
/**
* Returns the unit of time currently used.
@@
-343,7
+343,7
@@
private Q_SLOTS:
* Sets the 'tick_period_' member and emits the 'tick_period_changed'
* signal if needed.
*/
* Sets the 'tick_period_' member and emits the 'tick_period_changed'
* signal if needed.
*/
- void set_tick_period(
double
tick_period);
+ void set_tick_period(
const pv::util::Timestamp&
tick_period);
/**
* Sets the 'time_unit' member and emits the 'time_unit_changed'
/**
* Sets the 'time_unit' member and emits the 'time_unit_changed'
@@
-369,7
+369,7
@@
private:
bool always_zoom_to_fit_;
QTimer delayed_view_updater_;
bool always_zoom_to_fit_;
QTimer delayed_view_updater_;
-
double
tick_period_;
+
pv::util::Timestamp
tick_period_;
pv::util::SIPrefix tick_prefix_;
unsigned int tick_precision_;
util::TimeUnit time_unit_;
pv::util::SIPrefix tick_prefix_;
unsigned int tick_precision_;
util::TimeUnit time_unit_;