projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use boost::filesystem::path to get the filename from a path
[pulseview.git]
/
pv
/
view
/
ruler.h
diff --git
a/pv/view/ruler.h
b/pv/view/ruler.h
index 7514aeca86672d849f82019b1c257232f6afba16..dc4e7bb73139530cf870dacb5f06010e7c432050 100644
(file)
--- a/
pv/view/ruler.h
+++ b/
pv/view/ruler.h
@@
-36,6
+36,7
@@
class Ruler : public MarginWidget
Q_OBJECT
private:
Q_OBJECT
private:
+ static const int RulerHeight;
static const int MinorTickSubdivision;
static const int ScaleUnits[3];
static const int MinorTickSubdivision;
static const int ScaleUnits[3];
@@
-52,6
+53,9
@@
public:
static QString format_time(double t, unsigned int prefix,
unsigned precision = 0);
static QString format_time(double t, unsigned int prefix,
unsigned precision = 0);
+public:
+ QSize sizeHint() const;
+
private:
void paintEvent(QPaintEvent *event);
private:
void paintEvent(QPaintEvent *event);
@@
-70,6
+74,8
@@
private slots:
private:
boost::weak_ptr<TimeMarker> _grabbed_marker;
private:
boost::weak_ptr<TimeMarker> _grabbed_marker;
+ QPoint _mouse_down_point;
+ bool _dragging;
};
} // namespace view
};
} // namespace view