]> sigrok.org Git - pulseview.git/commitdiff
View: Remove unnecessary methods
authorSoeren Apel <redacted>
Mon, 18 Apr 2016 19:44:48 +0000 (21:44 +0200)
committerSoeren Apel <redacted>
Mon, 18 Apr 2016 19:44:48 +0000 (21:44 +0200)
pv/view/view.cpp
pv/view/view.hpp

index 8d5bd6d3ad02b836d7d5ee1f0f29e8f1cccf4a99..9841978a67f333a6b2c5eff555e70bea98590194 100644 (file)
@@ -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<sigrok::ChannelGroup> &group,
        const unordered_map<shared_ptr<sigrok::Channel>, shared_ptr<Signal> >
index 42fa322cc50b7e47f42ee51e1145a60ecf97c19b..a3610b74114246e7d94aae69859c7f805275cd85 100644 (file)
@@ -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<sigrok::ChannelGroup> &group,
                const std::unordered_map<std::shared_ptr<sigrok::Channel>,