From: Soeren Apel Date: Mon, 18 Apr 2016 19:44:48 +0000 (+0200) Subject: View: Remove unnecessary methods X-Git-Tag: pulseview-0.4.0~302 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9e8f0e503e0c79c3765947ba5abae0ffc76850c4;p=pulseview.git View: Remove unnecessary methods --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index 8d5bd6d3..9841978a 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -527,13 +527,6 @@ const QPoint& View::hover_point() const return hover_point_; } -void View::update_viewport() -{ - assert(viewport_); - viewport_->update(); - header_->update(); -} - void View::restack_all_trace_tree_items() { // Make a list of owners that is sorted from deepest first @@ -744,19 +737,6 @@ void View::update_layout() update_scroll(); } -void View::paint_label(QPainter &p, const QRect &rect, bool hover) -{ - (void)p; - (void)rect; - (void)hover; -} - -QRectF View::label_rect(const QRectF &rect) -{ - (void)rect; - return QRectF(); -} - TraceTreeItemOwner* View::find_prevalent_trace_group( const shared_ptr &group, const unordered_map, shared_ptr > diff --git a/pv/view/view.hpp b/pv/view/view.hpp index 42fa322c..a3610b74 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -214,8 +214,6 @@ public: const QPoint& hover_point() const; - void update_viewport(); - void restack_all_trace_tree_items(); Q_SIGNALS: @@ -273,21 +271,6 @@ private: void update_layout(); - /** - * Satisfies TraceTreeItem functionality. - * @param p the QPainter to paint into. - * @param rect the rectangle of the header area. - * @param hover true if the label is being hovered over by the mouse. - */ - void paint_label(QPainter &p, const QRect &rect, bool hover); - - /** - * Computes the outline rectangle of a label. - * @param rect the rectangle of the header area. - * @return Returns the rectangle of the signal label. - */ - QRectF label_rect(const QRectF &rect); - TraceTreeItemOwner* find_prevalent_trace_group( const std::shared_ptr &group, const std::unordered_map,