]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.cpp
View: Honor ENABLE_DECODE compiler switch
[pulseview.git] / pv / view / ruler.cpp
index 393af57711c699732c84cfd05c1ee9933dff0f6d..31ec121d074aa724bd4a67b83c2c4272d233099c 100644 (file)
@@ -35,10 +35,10 @@ using std::vector;
 namespace pv {
 namespace view {
 
-const float Ruler::RulerHeight = 2.5f;  // x Text Height
+const float Ruler::RulerHeight = 2.5f; // x Text Height
 const int Ruler::MinorTickSubdivision = 4;
 
-const float Ruler::HoverArrowSize = 0.5f;  // x Text Height
+const float Ruler::HoverArrowSize = 0.5f; // x Text Height
 
 Ruler::Ruler(View &parent) :
        MarginWidget(parent)
@@ -128,8 +128,7 @@ shared_ptr<ViewItem> Ruler::get_mouse_over_item(const QPoint &pt)
 void Ruler::paintEvent(QPaintEvent*)
 {
        if (!tick_position_cache_) {
-               auto ffunc = [this](const pv::util::Timestamp& t)
-               {
+               auto ffunc = [this](const pv::util::Timestamp& t) {
                        return format_time_with_distance(
                                this->view_.tick_period(),
                                t,